diff options
author | Paweł Forysiuk <tuxator@o2.pl> | 2014-03-19 13:11:42 +0100 |
---|---|---|
committer | Paweł Forysiuk <tuxator@o2.pl> | 2014-03-19 13:11:42 +0100 |
commit | 56ae760ecb27ba7ab05fa77ede7cf2c850818625 (patch) | |
tree | e6ae5d1ef0d60ffa6f63f547ae34b9dc541b5fbc /data | |
parent | e15bbfd1611cbbd84a04fba4bf59f898bbc774a5 (diff) | |
download | midori-56ae760ecb27ba7ab05fa77ede7cf2c850818625.tar.gz |
Properly install generated png files in adblock subfolder
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$") |