summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-13 18:35:43 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-06-13 18:35:43 +0000
commit5f20daab880e8b496faf8a00aa3707ba3beb3b1a (patch)
tree04c5577bf7ea4118a385843b427cb93b07057fe5 /CMakeLists.txt
parentadding preferences page for Measure Tool with option (enabled by default) to ... (diff)
downloadinkscape-5f20daab880e8b496faf8a00aa3707ba3beb3b1a.tar.gz
inkscape-5f20daab880e8b496faf8a00aa3707ba3beb3b1a.zip
cmake: fix for install target
(bzr r10296)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b3d60329..2f556b051 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,8 +49,62 @@ configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/inkscape.desktop.in"
+ "${CMAKE_BINARY_DIR}/inkscape.desktop"
+ IMMEDIATE @ONLY)
+
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
add_subdirectory(src)
+
+
+
+# -----------------------------------------------------------------------------
+# Installation
+# -----------------------------------------------------------------------------
+
+if(UNIX)
+ # TODO: man, locale, icons
+
+ # message after building.
+ add_custom_command(
+ TARGET blender POST_BUILD MAIN_DEPENDENCY blender
+ COMMAND ${CMAKE_COMMAND} -E echo 'now run: \"make install\" to copy runtime files & scripts to ${CMAKE_INSTALL_PREFIX}'
+ )
+
+ install(
+ PROGRAMS ${CMAKE_BINARY_DIR}/src/inkscape
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
+ )
+
+ install(
+ FILES ${CMAKE_BINARY_DIR}/inkscape.desktop
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications
+ )
+
+ install(
+ DIRECTORY
+ ${CMAKE_SOURCE_DIR}/share/clipart
+ ${CMAKE_SOURCE_DIR}/share/examples
+ ${CMAKE_SOURCE_DIR}/share/extensions
+ ${CMAKE_SOURCE_DIR}/share/filters
+ ${CMAKE_SOURCE_DIR}/share/fonts
+ ${CMAKE_SOURCE_DIR}/share/gradients
+ ${CMAKE_SOURCE_DIR}/share/icons
+ ${CMAKE_SOURCE_DIR}/share/keys
+ ${CMAKE_SOURCE_DIR}/share/markers
+ ${CMAKE_SOURCE_DIR}/share/palettes
+ ${CMAKE_SOURCE_DIR}/share/patterns
+ ${CMAKE_SOURCE_DIR}/share/screens
+ ${CMAKE_SOURCE_DIR}/share/templates
+ ${CMAKE_SOURCE_DIR}/share/tutorials
+ ${CMAKE_SOURCE_DIR}/share/ui
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/inkscape
+ )
+
+else()
+ # TODO, WIN32/APPLE
+endif()