windows build

This commit is contained in:
Christopher A. Mosher 2022-11-02 01:07:26 -04:00
parent 64370294f9
commit f7c595c1e8
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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