diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 9cef85a5..50859cfb 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -30,7 +30,14 @@ foreach(FILE ${DATA_FILES}) endif () elseif (${FILE} MATCHES "\\.svg$") string(REPLACE ".svg" "" IMG_ID ${FILE}) - SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/") + string (FIND ${FILE} "/" IS_DIR) + if (IS_DIR GREATER -1) + string(REPLACE "/" ";" DIR_LIST ${FILE}) + LIST(GET DIR_LIST 0 S_DIR) + SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/${S_DIR}") + else () + SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/") + endif() # These are being handled in add_executable for the "midori" binary elseif (${FILE} MATCHES "\\.ico$") elseif (${FILE} MATCHES "\\.rc$") |