diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 17:33:51 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 17:33:51 +0300 |
commit | 0ff94978f5f0494df9057adf1ea21c34d9a15fd7 (patch) | |
tree | f739fee78f3db39744cf46fec02de6be9205e606 | |
parent | fa24e6b99581d56fd1a898d9eae7764a1cb48041 (diff) | |
download | minetest-0ff94978f5f0494df9057adf1ea21c34d9a15fd7.tar.gz minetest-0ff94978f5f0494df9057adf1ea21c34d9a15fd7.tar.bz2 minetest-0ff94978f5f0494df9057adf1ea21c34d9a15fd7.zip |
Fix minetest_game installation and don't fail if it doesn't exist
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e8eefe579..3d68d352f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,11 @@ elseif(UNIX) # Linux, BSD etc endif() install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}") -install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/minetest" DESTINATION "${SHAREDIR}/games") +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") +endif() if(BUILD_CLIENT) #install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/sounds/base/pack" DESTINATION "${SHAREDIR}/sounds/base") install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/textures/base/pack" DESTINATION "${SHAREDIR}/textures/base") |