Fix CMake install data path
authorPerttu Ahola <celeron55@gmail.com>
Mon, 28 Nov 2011 20:10:06 +0000 (22:10 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:57 +0000 (19:13 +0200)
src/CMakeLists.txt

index b714e89f1fa06e684228086f521aae321967470b..a7805faeafadc4c5038c653286f0ea9f9bde0d4b 100644 (file)
@@ -310,7 +310,9 @@ if(BUILD_CLIENT)
 
        #file(GLOB images "${CMAKE_CURRENT_SOURCE_DIR}/../data/textures/*.png")
        #install(FILES ${images} DESTINATION ${DATADIR}/textures)
-       install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../data" DESTINATION ${DATADIR})
+       #file(GLOB datasubstuff "${CMAKE_CURRENT_SOURCE_DIR}/../data/*")
+       #install(DIRECTORY "${datasubstuff}" DESTINATION ${DATADIR})
+       install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../data/" DESTINATION ${DATADIR})
 
        if(USE_GETTEXT)
                foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})