Install PDB file if available

fix-squashed-planets
MrSimbax 2020-07-13 23:36:17 +02:00
parent 3ec39047e1
commit 17e38bf66c
1 changed files with 3 additions and 0 deletions

View File

@ -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 $<TARGET_PDB_FILE:colobot> 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()