Fix for MSVC and move stuff around a bit in CMakeLists.txt and src/CMakeLists.txt
authorPerttu Ahola <celeron55@gmail.com>
Mon, 19 Mar 2012 22:52:53 +0000 (00:52 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 19 Mar 2012 23:06:58 +0000 (01:06 +0200)
CMakeLists.txt
src/CMakeLists.txt

index 257df6cecf9bcd5bb1ad2145b048b948fffeffed..c6f878823113a8f817501030bebf9905861358fe 100644 (file)
@@ -84,8 +84,12 @@ elseif(UNIX) # Linux, BSD etc
        endif()
 endif()
 
-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}/")
-install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/mesetint" DESTINATION "${SHAREDIR}/games/")
+install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}")
+install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/mesetint" DESTINATION "${SHAREDIR}/games")
+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")
+endif()
 
 install(FILES "README.txt" DESTINATION "${DOCDIR}")
 install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
index 16ab45c5c4913d3dbc2267b6265a8477ba29b690..b8f0341f098166f1b18b7b49956fdf3e55feaf87 100644 (file)
@@ -313,9 +313,6 @@ endif()
 if(BUILD_CLIENT)
        install(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
 
-       #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/")
-
        if(USE_GETTEXT)
                foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})
                        set_mo_paths(MO_BUILD_PATH MO_DEST_PATH ${LOCALE})