diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-06-13 06:38:36 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-13 06:38:36 +0000 |
| commit | c049136141351920600d1bbd1f330a46a04b1210 (patch) | |
| tree | fa520c216d04a01639de902766a7ff2e2d581e70 /src | |
| parent | cmake: (diff) | |
| download | inkscape-c049136141351920600d1bbd1f330a46a04b1210.tar.gz inkscape-c049136141351920600d1bbd1f330a46a04b1210.zip | |
cmake: basic install target
(bzr r10282)
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 718c92b4b..3e7fe3a11 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -582,3 +582,50 @@ target_link_libraries(inkscape #add_executable(inkview inkview.cpp)
# ...
+
+# -----------------------------------------------------------------------------
+# 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 inkscape
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
+ )
+
+ install(
+ FILES ${CMAKE_SOURCE_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()
|
