summaryrefslogtreecommitdiffstats
path: root/share/palettes
diff options
context:
space:
mode:
authorhouz <houz@gmx.de>2015-05-08 17:10:46 +0000
committer~suv <suv-sf@users.sourceforge.net>2015-05-08 17:10:46 +0000
commitc24270d14aad415c4b771138407a23e1239aa8f8 (patch)
tree46e87cabfb1d99a6b5a832d2c7048784e1cd8164 /share/palettes
parentfix for bug 1391374. (diff)
downloadinkscape-c24270d14aad415c4b771138407a23e1239aa8f8.tar.gz
inkscape-c24270d14aad415c4b771138407a23e1239aa8f8.zip
cmake: Bring cmake installation in line with autotools (bug #1451481)
Fixed bugs: - https://launchpad.net/bugs/1451481 (bzr r14128)
Diffstat (limited to 'share/palettes')
-rw-r--r--share/palettes/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/palettes/CMakeLists.txt b/share/palettes/CMakeLists.txt
new file mode 100644
index 000000000..77b4b2a37
--- /dev/null
+++ b/share/palettes/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(I18N_FILES "inkscape.gpl" "svg.gpl" "Tango-Palette.gpl")
+
+add_custom_command(
+ OUTPUT palettes.h
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/i18n.py ${I18N_FILES} > ${CMAKE_CURRENT_BINARY_DIR}/palettes.h
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/i18n.py ${I18N_FILES}
+)
+add_custom_target(palettes.h ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/palettes.h)
+
+file(GLOB _FILES "*.gpl")
+
+install(FILES ${_FILES} "README" ${CMAKE_CURRENT_BINARY_DIR}/palettes.h DESTINATION ${SHARE_INSTALL}/inkscape/palettes)