From 38cb36442e6b50dbef1d45aff8be0124d8ca1c08 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 24 Nov 2024 17:39:18 +0100 Subject: icons: Implement PDF export with CMake --- icons/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 icons/CMakeLists.txt (limited to 'icons') 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() -- cgit v1.2.3-70-g09d2