Merged changes in the trunk up to revision 30397.
[blender.git] / source / creator / CMakeLists.txt
index fe524b6cfcc673446dc9dbce55b596f53da8c7ca..798f98cf78c257f1ca974f4fb395fb5cea7ca11a 100644 (file)
@@ -193,9 +193,35 @@ IF(WITH_INSTALL)
                ENDIF(WITH_GAMEENGINE AND WITH_PLAYER)
 
                INSTALL(
-                       DIRECTORY ${TARGETDIR}/.blender/
-                       DESTINATION ${BLENDERPATH}
-               )
+            FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop
+            DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications
+        )
+               INSTALL(
+            FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/scalable/blender.svg
+            DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps
+        )
+               INSTALL(
+            FILES ${CMAKE_SOURCE_DIR}/doc/blender.1
+            DESTINATION ${CMAKE_INSTALL_PREFIX}/man
+        )
+               INSTALL(
+            DIRECTORY ${CMAKE_SOURCE_DIR}/release/text/
+            DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/blender
+            PATTERN ".svn" EXCLUDE
+        )
+               INSTALL(
+            DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts/
+            DESTINATION ${BLENDERPATH}/scripts
+            PATTERN ".svn" EXCLUDE
+        )
+               IF(WITH_INTERNATIONAL)
+                       INSTALL(
+               DIRECTORY ${CMAKE_SOURCE_DIR}/bin/.blender/locale/
+               DESTINATION ${BLENDERPATH}/datafiles/locale
+               PATTERN ".svn" EXCLUDE
+               )
+               ENDIF(WITH_INTERNATIONAL)
+        
                # end "make install"
     
        ENDIF(UNIX AND NOT APPLE)