blob: e5d15d7f91991b87aa7e45d73e75f17f861cba39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()
|