aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-24 21:26:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-24 21:26:58 +0300
commitbf5602a8cf0ed86fd37191824c1323a9d17ed415 (patch)
tree2809d82aa5e5f93b560c2775b767609b03b8bc99 /test
parentworkflows/ci: Bionic to Focal (diff)
downloadwinapi-common-bf5602a8cf0ed86fd37191824c1323a9d17ed415.tar.gz
winapi-common-bf5602a8cf0ed86fd37191824c1323a9d17ed415.zip
cmake: use install_pdbs()
Diffstat (limited to '')
-rw-r--r--test/CMakeLists.txt4
-rw-r--r--test/unit_tests/CMakeLists.txt8
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)