diff options
author | Perttu Ahola <celeron55@gmail.com> | 2013-03-22 07:46:48 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-03-22 07:46:48 +0200 |
commit | b6dcadeb796db23310a3b7b43b75f1b11287bc8d (patch) | |
tree | 4bdfc14227d9dc7d764534acf9132db134dcf2eb | |
parent | c2250d95c4da368d1535794a1c7f2092ce479d7a (diff) | |
download | minetest-b6dcadeb796db23310a3b7b43b75f1b11287bc8d.tar.gz minetest-b6dcadeb796db23310a3b7b43b75f1b11287bc8d.tar.bz2 minetest-b6dcadeb796db23310a3b7b43b75f1b11287bc8d.zip |
CMakeLists.txt: Add games/common to be installed when available
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b1b4a887..437d31cf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,6 +133,11 @@ endif() install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}") install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/client" DESTINATION "${SHAREDIR}") install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minimal" DESTINATION "${SHAREDIR}/games") +set(COMMON_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/games/common") +if(EXISTS ${COMMON_SOURCE} AND IS_DIRECTORY ${COMMON_SOURCE}) + install(FILES ${COMMON_SOURCE}/README.txt DESTINATION "${SHAREDIR}/games/common/") + install(DIRECTORY ${COMMON_SOURCE}/mods DESTINATION "${SHAREDIR}/games/common") +endif() set(MINETEST_GAME_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game") if(EXISTS ${MINETEST_GAME_SOURCE} AND IS_DIRECTORY ${MINETEST_GAME_SOURCE}) install(FILES ${MINETEST_GAME_SOURCE}/game.conf DESTINATION "${SHAREDIR}/games/minetest_game/") |