mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-09-17 03:54:54 +00:00
windows build
This commit is contained in:
parent
64370294f9
commit
f7c595c1e8
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@ -88,16 +88,17 @@ jobs:
|
|||||||
|
|
||||||
- name: "Set up vcpkg and install dependencies"
|
- name: "Set up vcpkg and install dependencies"
|
||||||
# TODO use https://github.com/lukka/CppCMakeVcpkgTemplate instead of this
|
# TODO use https://github.com/lukka/CppCMakeVcpkgTemplate instead of this
|
||||||
|
shell: "bash"
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/Microsoft/vcpkg.git
|
git clone https://github.com/Microsoft/vcpkg.git
|
||||||
.\vcpkg\bootstrap-vcpkg.bat -disableMetrics
|
vcpkg/bootstrap-vcpkg -disableMetrics
|
||||||
vcpkg install sdl2
|
vcpkg install sdl2
|
||||||
|
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_PREFIX_PATH=vcpkg/installed/x64-windows
|
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||||
cmake --build build
|
cmake --build build
|
||||||
dir build/src
|
dir build/src
|
||||||
dir -Path build/conf
|
dir -Path build/conf
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
set(CMAKE_FIND_DEBUG_MODE 1)
|
set(CMAKE_FIND_DEBUG_MODE 1)
|
||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 CONFIG REQUIRED)
|
||||||
include_directories(${SDL2_INCLUDE_DIRS})
|
include_directories(${SDL2_INCLUDE_DIRS})
|
||||||
|
|
||||||
set(sources
|
set(sources
|
||||||
|
Loading…
Reference in New Issue
Block a user