From c049136141351920600d1bbd1f330a46a04b1210 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 13 Jun 2011 06:38:36 +0000 Subject: cmake: basic install target (bzr r10282) --- src/CMakeLists.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'src') 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() -- cgit v1.2.3