diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CBot/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/CBot/CMakeLists.txt b/src/CBot/CMakeLists.txt index 271f2ce..12d7262 100644 --- a/src/CBot/CMakeLists.txt +++ b/src/CBot/CMakeLists.txt @@ -18,4 +18,4 @@ else() add_library(CBot SHARED ${SOURCES}) endif() -INSTALL_TARGETS(/lib CBot) +install(TARGETS CBot LIBRARY DESTINATION "${COLOBOT_LIB_DIR}") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4ffacd3..a7f3441 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -195,4 +195,5 @@ add_executable(colobot ${SOURCES}) target_link_libraries(colobot ${LIBS}) -install_targets(/games colobot) +install(TARGETS colobot RUNTIME DESTINATION games/) +set_target_properties(colobot PROPERTIES INSTALL_RPATH ${COLOBOT_LIB_DIR}) |