aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 18:21:19 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 19:16:16 +0200
commit5938c4a524354b6b7591b8d9beab3151cb009fe8 (patch)
tree61cb1bd8ba7001a5a894333645a665116acfc849 /test
parentworkflows/ci: remove on: pull_request (diff)
downloadwinapi-debug-pre-c++20.tar.gz
winapi-debug-pre-c++20.zip
upgrade dependenciespre-c++20
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt8
-rw-r--r--test/unit_tests/CMakeLists.txt4
2 files changed, 9 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 17770c9..b77003c 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,12 +3,16 @@ target_link_libraries(test_lib PRIVATE winapi_debug)
target_include_directories(test_lib PUBLIC .)
target_compile_definitions(test_lib PRIVATE TEST_LIB_EXPORTS)
install(TARGETS test_lib RUNTIME DESTINATION bin/test)
-install_pdbs(TARGETS test_lib DESTINATION bin/test)
+if(MSVC)
+ install(FILES $<TARGET_PDB_FILE:test_lib> DESTINATION bin/test OPTIONAL)
+endif()
add_executable(call_stack call_stack.cpp)
target_link_libraries(call_stack PRIVATE test_lib)
install(TARGETS call_stack RUNTIME DESTINATION bin/test)
-install_pdbs(TARGETS call_stack DESTINATION bin/test)
+if(MSVC)
+ install(FILES $<TARGET_PDB_FILE:call_stack> DESTINATION bin/test OPTIONAL)
+endif()
find_package(Python3 REQUIRED COMPONENTS Interpreter)
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index 93b7b8b..958eb92 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -7,7 +7,9 @@ target_link_libraries(unit_tests PRIVATE
Boost::filesystem
Boost::unit_test_framework)
install(TARGETS unit_tests RUNTIME DESTINATION bin/test)
-install_pdbs(TARGETS unit_tests DESTINATION bin/test)
+if(MSVC)
+ install(FILES $<TARGET_PDB_FILE:unit_tests> DESTINATION bin/test OPTIONAL)
+endif()
if(MSVC)
# Set the working directory so that the unit_tests binary can find the