aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-31 00:05:01 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-31 00:05:01 +0300
commit5403b1cf6d9906dac67fd9ed60b1531398e21bfb (patch)
tree0d3cfe45eaed9befdf91ed1833ad8064c498c1e3
parent29110d5428825d95ea7d2c083cd5a899f1d75104 (diff)
downloadminetest-5403b1cf6d9906dac67fd9ed60b1531398e21bfb.tar.gz
minetest-5403b1cf6d9906dac67fd9ed60b1531398e21bfb.tar.bz2
minetest-5403b1cf6d9906dac67fd9ed60b1531398e21bfb.zip
Install minetest_game without .git and other unnecessary things
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d68d352f..fdecf5167 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,9 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minimal" DESTINATION "${SHAREDIR}/games")
set(MINETEST_GAME_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest_game")
if(EXISTS ${MINETEST_GAME_SOURCE} AND IS_DIRECTORY ${MINETEST_GAME_SOURCE})
- install(DIRECTORY ${MINETEST_GAME_SOURCE} DESTINATION "${SHAREDIR}/games")
+ install(FILES ${MINETEST_GAME_SOURCE}/game.conf DESTINATION "${SHAREDIR}/games/minetest_game/")
+ install(FILES ${MINETEST_GAME_SOURCE}/README.txt DESTINATION "${SHAREDIR}/games/minetest_game/")
+ install(DIRECTORY ${MINETEST_GAME_SOURCE}/mods DESTINATION "${SHAREDIR}/games/minetest_game/")
endif()
if(BUILD_CLIENT)
#install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/sounds/base/pack" DESTINATION "${SHAREDIR}/sounds/base")