summaryrefslogtreecommitdiff
path: root/icons/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'icons/CMakeLists.txt')
-rw-r--r--icons/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt
new file mode 100644
index 0000000..e5d15d7
--- /dev/null
+++ b/icons/CMakeLists.txt
@@ -0,0 +1,19 @@
+set(icons
+ example
+)
+
+foreach(icon ${icons})
+ add_custom_target("icon-${icon}-pdf" ALL)
+ add_custom_command(
+ TARGET
+ "icon-${icon}-pdf"
+ POST_BUILD
+ COMMAND
+ inkscape
+ --export-type=pdf
+ --export-filename=${CMAKE_CURRENT_BINARY_DIR}/${icon}.pdf
+ ${CMAKE_CURRENT_SOURCE_DIR}/${icon}.svg
+ WORKING_DIRECTORY
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ )
+endforeach()