diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 22:41:31 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 22:41:31 +0300 |
commit | c57d855d5b99be90661702fb05bdff439ab52a5d (patch) | |
tree | e54c867dc112b982aed16f9df5a48b0739c5ea28 /test/CMakeLists.txt | |
parent | unit_tests: dynamic path to test_lib.pdb (diff) | |
download | winapi-debug-c57d855d5b99be90661702fb05bdff439ab52a5d.tar.gz winapi-debug-c57d855d5b99be90661702fb05bdff439ab52a5d.zip |
cmake: use install_pdbs()
Diffstat (limited to '')
-rw-r--r-- | test/CMakeLists.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d429bce..137936a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,18 +5,14 @@ target_include_directories(test_lib PUBLIC .) target_compile_definitions(test_lib PRIVATE TEST_LIB_EXPORTS) install(TARGETS test_lib RUNTIME DESTINATION bin/test) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:test_lib>" DESTINATION bin/test OPTIONAL) -endif() +install_pdbs(TARGETS test_lib DESTINATION bin/test) add_executable(call_stack call_stack.cpp) target_link_libraries(call_stack PRIVATE test_lib) target_link_libraries(call_stack PRIVATE Boost::nowide) install(TARGETS call_stack RUNTIME DESTINATION bin/test) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:call_stack>" DESTINATION bin/test OPTIONAL) -endif() +install_pdbs(TARGETS call_stack DESTINATION bin/test) add_test(NAME call_stack COMMAND call_stack) |