summaryrefslogtreecommitdiffstats
path: root/kmymoney2/icons/CMakeLists.txt
blob: 39f9ead864fab830c048f7eeda6167a668aa2bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

file( GLOB _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
list( SORT _themes )

foreach( _theme IN LISTS _themes )
  if( NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_theme} )
    list( REMOVE_ITEM _themes "${_theme}" )
  endif()
endforeach()

install(
   DIRECTORY ${_themes}
   DESTINATION ${DATA_INSTALL_DIR}/kmymoney2/icons
   FILES_MATCHING
     PATTERN "*.gif"
     PATTERN "*.png"
     PATTERN "*.svgz"
)