Skip to content

Commit

Permalink
Test multi-config CMake
Browse files Browse the repository at this point in the history
Use the "Additional compile flags" CI test to check that multi-config CMake
generators work.
  • Loading branch information
lmoureaux authored and jwrober committed Dec 30, 2023
1 parent 3881205 commit 2a6ffa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
libsdl2-mixer-dev
- name: Configure
run: |
cmake . -B build -G Ninja --preset "DistroRelease"
cmake . -B build -G "Ninja Multi-Config" --preset "DistroRelease"
- name: Build
run: |
cmake --build build
Expand Down
2 changes: 1 addition & 1 deletion data/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/rulesets.cpp
add_executable(test_rulesets ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/rulesets.cpp)
target_link_libraries(test_rulesets PRIVATE Qt5::Test)
add_test(NAME test_rulesets
COMMAND "${CMAKE_BINARY_DIR}/$<CONFIG>/test_rulesets"
COMMAND test_rulesets
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
2 changes: 1 addition & 1 deletion server/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/cli.cpp
add_executable(test_server_cli ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/cli.cpp)
target_link_libraries(test_server_cli PRIVATE Qt5::Test)
add_test(NAME test_server_cli
COMMAND "${CMAKE_BINARY_DIR}/$<CONFIG>/test_server_cli"
COMMAND test_server_cli
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")

0 comments on commit 2a6ffa5

Please sign in to comment.