diff options
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 4 | ||||
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 43b4d4d..3b61d11 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,8 +2,6 @@ add_executable(echo echo.cpp) set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) install(TARGETS echo RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:echo>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS echo DESTINATION bin) add_subdirectory(unit_tests) diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 7311d75..c3d5b84 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -10,9 +10,7 @@ find_package(Boost 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) file(GLOB worker_src "worker/*.cpp") add_executable(worker ${worker_src} ${shared_src}) @@ -24,6 +22,4 @@ find_package(Boost REQUIRED) target_link_libraries(worker PRIVATE Boost::disable_autolinking Boost::boost) install(TARGETS worker RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:worker>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS worker DESTINATION bin) |