aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--client/CMakeLists.txt3
-rw-r--r--server/main/CMakeLists.txt3
-rw-r--r--test/unit_tests/CMakeLists.txt3
3 files changed, 9 insertions, 0 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index c6016b5..8455f3b 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -14,3 +14,6 @@ target_link_libraries(client PRIVATE Threads::Threads)
set_target_properties(client PROPERTIES OUTPUT_NAME math-client)
install(TARGETS client RUNTIME DESTINATION bin)
+if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ install(FILES "$<TARGET_PDB_FILE:client>" DESTINATION bin OPTIONAL)
+endif()
diff --git a/server/main/CMakeLists.txt b/server/main/CMakeLists.txt
index 25ca7be..7269005 100644
--- a/server/main/CMakeLists.txt
+++ b/server/main/CMakeLists.txt
@@ -21,3 +21,6 @@ endif()
set_target_properties(server PROPERTIES OUTPUT_NAME math-server)
install(TARGETS server RUNTIME DESTINATION bin)
+if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ install(FILES "$<TARGET_PDB_FILE:server>" DESTINATION bin OPTIONAL)
+endif()
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index d212db6..dbb78ed 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -10,3 +10,6 @@ target_link_libraries(unit_tests PRIVATE ${Boost_LIBRARIES})
set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests)
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()