diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a72749..797128f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,7 @@ cmake_minimum_required(VERSION 3.10) project(art-inkscape LANGUAGES NONE) -set(icons - example -) +file(GLOB icon_files "${CMAKE_CURRENT_SOURCE_DIR}/icons/*.svg") set(formats pdf @@ -15,7 +13,8 @@ set(formats find_program(imagemagick magick convert) -foreach(icon ${icons}) +foreach(icon_file ${icon_files}) + get_filename_component(icon ${icon_file} NAME_WE) foreach(format ${formats}) set(source "${CMAKE_CURRENT_SOURCE_DIR}/icons/${icon}.svg") set(sink "${CMAKE_CURRENT_BINARY_DIR}/icons/${format}/${icon}.${format}") |