1
0
Fork 0

Fix minetest_game installation and don't fail if it doesn't exist

mutilcraft-mt53
Perttu Ahola 2012-03-27 17:33:51 +03:00
parent fa24e6b995
commit 0ff94978f5
1 changed files with 5 additions and 1 deletions

View File

@ -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")