From 17e38bf66c25808db5e2e1331c8fa3237dce7e07 Mon Sep 17 00:00:00 2001 From: MrSimbax Date: Mon, 13 Jul 2020 23:36:17 +0200 Subject: [PATCH] Install PDB file if available --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4afe72eb..6ea0bfab 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -584,6 +584,9 @@ target_link_libraries(colobot colobotbase SDL2::Main) # Install install(TARGETS colobot RUNTIME DESTINATION ${COLOBOT_INSTALL_BIN_DIR}) +if(MSVC) + install(FILES $ CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${COLOBOT_INSTALL_BIN_DIR} OPTIONAL) +endif() if(NOT CBOT_STATIC) set_target_properties(colobot PROPERTIES INSTALL_RPATH ${COLOBOT_INSTALL_LIB_DIR}) endif()