diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:30:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:30:19 +0300 |
commit | e4bc69ee20aac36860407c687969fbd6c72771d9 (patch) | |
tree | 3134b9a9998c492b9c0490d3575f43e58a33888a /test | |
parent | README: update (diff) | |
download | math-server-e4bc69ee20aac36860407c687969fbd6c72771d9.tar.gz math-server-e4bc69ee20aac36860407c687969fbd6c72771d9.zip |
cmake: use install_pdbs()
Diffstat (limited to '')
-rw-r--r-- | test/benchmarks/CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/test/benchmarks/CMakeLists.txt b/test/benchmarks/CMakeLists.txt index c81a520..190ae8f 100644 --- a/test/benchmarks/CMakeLists.txt +++ b/test/benchmarks/CMakeLists.txt @@ -7,8 +7,6 @@ target_link_libraries(benchmarks PRIVATE lexer) target_link_libraries(benchmarks PRIVATE benchmark benchmark_main) install(TARGETS benchmarks RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:benchmarks>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS benchmarks DESTINATION bin) add_test(NAME benchmarks COMMAND benchmarks --benchmark_color=false) diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 16da801..7f1045b 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -10,8 +10,6 @@ find_package(Boost 1.67.0 REQUIRED COMPONENTS unit_test_framework) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework) install(TARGETS unit_tests RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:unit_tests>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS unit_tests DESTINATION bin) add_test(NAME unit_tests COMMAND unit_tests --no_color_output) |