summaryrefslogtreecommitdiffstats
path: root/IconThemes/CMakeLists.txt
blob: 202cb9623f085dac7f5100970cbce363d0eb3ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#################################################
#
#  (C) 2015 Timothy Pearson
#  [email protected]
#  (C) 2011 Golubev Alexander
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

set(ICON_THEMES locolor ikons kdeclassic slick kids )
set(ICON_TYPES actions apps categories devices places mimetypes)
set(ICON_SIZES 16x16 22x22 32x32 48x48 64x64 128x128 scalable)
set(ICON_SUFFIXES png mng svg svgz)

foreach (theme ${ICON_THEMES})
  tde_create_translated_desktop(
    SOURCE ${theme}/index.theme
    DESTINATION ${ICON_INSTALL_DIR}/${theme}
    PO_DIR icon-themes
  )
  foreach(size ${ICON_SIZES})
    foreach(type ${ICON_TYPES})
      foreach(suffix ${ICON_SUFFIXES})
        FILE(GLOB files  "${theme}/${size}/${type}/*.${suffix}" )
        install(FILES ${files} DESTINATION ${ICON_INSTALL_DIR}/${theme}/${size}/${type}/)
      endforeach(suffix ${ICON_SUFFIXES})
    endforeach(type ${ICON_TYPES})
  endforeach(size ${ICON_SIZES})
endforeach (theme ${ICON_THEMES})