diff options
| -rw-r--r-- | client/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | server/main/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | test/stress/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | test/unit_tests/CMakeLists.txt | 6 |
4 files changed, 14 insertions, 5 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index cf0c1ee..2aff485 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -9,7 +9,8 @@ set_target_properties(client PROPERTIES OUTPUT_NAME math-client) target_link_libraries(client PRIVATE Threads::Threads) target_link_libraries(client PRIVATE Boost::disable_autolinking - Boost::program_options) + Boost::program_options +) install(TARGETS client RUNTIME DESTINATION bin) if(MSVC) install(FILES $<TARGET_PDB_FILE:client> DESTINATION bin OPTIONAL) diff --git a/server/main/CMakeLists.txt b/server/main/CMakeLists.txt index c699185..ef2b170 100644 --- a/server/main/CMakeLists.txt +++ b/server/main/CMakeLists.txt @@ -15,7 +15,8 @@ target_link_libraries(server PRIVATE common parser) target_link_libraries(server PRIVATE Threads::Threads) target_link_libraries(server PRIVATE Boost::disable_autolinking - Boost::program_options) + Boost::program_options +) install(TARGETS server RUNTIME DESTINATION bin) if(MSVC) install(FILES $<TARGET_PDB_FILE:server> DESTINATION bin OPTIONAL) diff --git a/test/stress/CMakeLists.txt b/test/stress/CMakeLists.txt index 340cb12..2dafab8 100644 --- a/test/stress/CMakeLists.txt +++ b/test/stress/CMakeLists.txt @@ -2,5 +2,10 @@ if(CMAKE_HOST_UNIX) # Not going to bother with bash on Windows. find_package(Python3 REQUIRED COMPONENTS Interpreter) - add_test(NAME stress_test COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test.sh" "$<TARGET_FILE:server>" "$<TARGET_FILE:client>") + add_test( + NAME stress_test + COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test.sh" + "$<TARGET_FILE:server>" + "$<TARGET_FILE:client>" + ) endif() diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index cf348f7..390d223 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -6,7 +6,8 @@ set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests) target_link_libraries(unit_tests PRIVATE lexer parser) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking - Boost::unit_test_framework) + Boost::unit_test_framework +) install(TARGETS unit_tests RUNTIME DESTINATION bin) if(MSVC) install(FILES $<TARGET_PDB_FILE:unit_tests> DESTINATION bin OPTIONAL) @@ -20,4 +21,5 @@ add_test(NAME unit_tests COMMAND Python3::Interpreter --pass-regex [=[^\*\*\* No errors detected$]=] -- "$<TARGET_FILE:unit_tests>" - --no_color_output) + --no_color_output +) |
