blob: a66c3059d0df1c0ea1fcc7fc4957fc21fef71e70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
set(icons
example
)
foreach(icon ${icons})
add_custom_target("icon-${icon}-pdf" ALL)
add_custom_command(
TARGET
"icon-${icon}-pdf"
POST_BUILD
COMMAND
SELF_CALL=xxx # https://gitlab.com/inkscape/inkscape/-/issues/4716
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()
|