aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 15:26:00 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 17:47:32 +0200
commit06c39b2fc4438b96338568cae82b44726abd7144 (patch)
tree087d1cb7bc8295348b52bd7fe08b8d2599802786 /test/unit_tests/CMakeLists.txt
parentcmake: use CONFIGURE_DEPENDS (diff)
downloadwinapi-common-06c39b2fc4438b96338568cae82b44726abd7144.tar.gz
winapi-common-06c39b2fc4438b96338568cae82b44726abd7144.zip
upgrade cmake-common
* common.cmake is removed. * PDB installation is done in an arguably simpler, custom way. * winapi-utf8 is upgraded.
Diffstat (limited to '')
-rw-r--r--test/unit_tests/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index b8c8c7c..d993b3b 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -8,7 +8,6 @@ set_target_properties(unit_tests PROPERTIES OUTPUT_NAME winapi-common-unit-tests
target_link_libraries(unit_tests PRIVATE winapi_common winapi_utf8)
target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework)
install(TARGETS unit_tests RUNTIME DESTINATION bin)
-install_pdbs(TARGETS unit_tests DESTINATION bin)
file(GLOB worker_src CONFIGURE_DEPENDS "worker/*.cpp")
add_executable(worker ${worker_src} ${shared_src})
@@ -16,7 +15,13 @@ set_target_properties(worker PROPERTIES OUTPUT_NAME winapi-common-test-worker)
target_link_libraries(worker PRIVATE winapi_common winapi_utf8)
target_link_libraries(worker PRIVATE Boost::disable_autolinking Boost::boost)
install(TARGETS worker RUNTIME DESTINATION bin)
-install_pdbs(TARGETS worker DESTINATION bin)
+
+if(MSVC)
+ install(FILES
+ $<TARGET_PDB_FILE:unit_tests>
+ $<TARGET_PDB_FILE:worker>
+ DESTINATION bin OPTIONAL)
+endif()
find_package(Python3 REQUIRED COMPONENTS Interpreter)