mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-21 09:34:08 +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"
|
||||
# TODO use https://github.com/lukka/CppCMakeVcpkgTemplate instead of this
|
||||
shell: "bash"
|
||||
run: |
|
||||
git clone https://github.com/Microsoft/vcpkg.git
|
||||
.\vcpkg\bootstrap-vcpkg.bat -disableMetrics
|
||||
vcpkg/bootstrap-vcpkg -disableMetrics
|
||||
vcpkg install sdl2
|
||||
|
||||
- name: "Build"
|
||||
shell: "bash"
|
||||
run: |
|
||||
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
|
||||
dir build/src
|
||||
dir -Path build/conf
|
||||
|
@ -1,5 +1,5 @@
|
||||
set(CMAKE_FIND_DEBUG_MODE 1)
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
|
||||
set(sources
|
||||
|
Loading…
x
Reference in New Issue
Block a user