Install PDB file if available
parent
3ec39047e1
commit
17e38bf66c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue