diff options
author | xengineering <me@xengineering.eu> | 2024-11-24 17:39:18 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-11-24 17:39:18 +0100 |
commit | 38cb36442e6b50dbef1d45aff8be0124d8ca1c08 (patch) | |
tree | 779fd326dc086c5dc4c07d806a1572db237639fe | |
parent | c6eb38e73147d302a7ca5ed08a3ccda6d2ea6d29 (diff) | |
download | graphics-inkscape-38cb36442e6b50dbef1d45aff8be0124d8ca1c08.tar graphics-inkscape-38cb36442e6b50dbef1d45aff8be0124d8ca1c08.tar.zst graphics-inkscape-38cb36442e6b50dbef1d45aff8be0124d8ca1c08.zip |
icons: Implement PDF export with CMake
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | icons/CMakeLists.txt | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b7649a..1d9bc93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ cmake_minimum_required(VERSION 3.10) project(art-inkscape LANGUAGES NONE) + +add_subdirectory(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() |