aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt8
1 files changed, 6 insertions, 2 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)