summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Zieliński <michal@zielinscy.org.pl>2012-10-05 22:07:58 +0200
committerMichał Zieliński <michal@zielinscy.org.pl>2012-10-05 22:07:58 +0200
commitb7667cef3566fa45805e3ae1e7fc6c214e9126c9 (patch)
tree408b67fc5c3d6d289d8867c0afd0c23f3c335eb4
parent602273e04a16a1ab0fe5fa977f229b51bad48ff5 (diff)
downloadcolobot-b7667cef3566fa45805e3ae1e7fc6c214e9126c9.tar.gz
colobot-b7667cef3566fa45805e3ae1e7fc6c214e9126c9.tar.bz2
colobot-b7667cef3566fa45805e3ae1e7fc6c214e9126c9.zip
Added "make install" target.
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/CBot/CMakeLists.txt2
-rw-r--r--src/CMakeLists.txt2
3 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1353250..660c79f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,3 +131,5 @@ endif()
# Subdirectory with sources
add_subdirectory(src bin)
+
+INSTALL_FILES(/share/games/colobot ../data)
diff --git a/src/CBot/CMakeLists.txt b/src/CBot/CMakeLists.txt
index 9f5b987..271f2ce 100644
--- a/src/CBot/CMakeLists.txt
+++ b/src/CBot/CMakeLists.txt
@@ -17,3 +17,5 @@ if(${CBOT_STATIC})
else()
add_library(CBot SHARED ${SOURCES})
endif()
+
+INSTALL_TARGETS(/lib CBot)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a7f1c96..c8372b0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -192,3 +192,5 @@ link_directories(${CMAKE_CURRENT_SOURCE_DIR}/CBot)
add_executable(colobot ${SOURCES})
target_link_libraries(colobot ${LIBS})
+
+INSTALL_TARGETS(/games colobot)