~midori/midori/trunk

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: Paweł Forysiuk
  • Date: 2014-03-19 12:11:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: tuxator@o2.pl-20140319121142-v8mwx5wcjbwz3lmp
Properly install generated png files in adblock subfolder

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        endif ()
31
31
    elseif (${FILE} MATCHES "\\.svg$")
32
32
        string(REPLACE ".svg" "" IMG_ID ${FILE})
33
 
        SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/")
 
33
        string (FIND ${FILE} "/" IS_DIR)
 
34
        if (IS_DIR GREATER -1)
 
35
            string(REPLACE "/" ";" DIR_LIST ${FILE})
 
36
            LIST(GET DIR_LIST 0 S_DIR)
 
37
            SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/${S_DIR}")
 
38
        else ()
 
39
            SVG2PNG (${IMG_ID} "${CMAKE_INSTALL_DATADIR}/midori/res/")
 
40
        endif()
34
41
    # These are being handled in add_executable for the "midori" binary
35
42
    elseif (${FILE} MATCHES "\\.ico$")
36
43
    elseif (${FILE} MATCHES "\\.rc$")