summaryrefslogtreecommitdiffstats
path: root/wallpapers/CMakeLists.txt
blob: f0c05f28230b158b599d3e88edb8bc62002bf803 (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
#################################################
#
#  (C) 2011 Golubev Alexander
#  fatzer2 (AT) gmail.com
#
#  (C) 2020 Slávek Banko
#  slavek.banko (AT) axis.cz
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

file( GLOB _wallpapers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.jpg *.png )
list( SORT _wallpapers)

foreach( _wallpaper IN LISTS _wallpapers )
  install(
    FILES ${_wallpaper}
    DESTINATION ${WALLPAPER_INSTALL_DIR}
  )
  if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_wallpaper}.desktop )
    tde_create_translated_desktop(
      SOURCE ${_wallpaper}.desktop
      DESTINATION ${WALLPAPER_INSTALL_DIR}
      PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/wallpapers-desktops
    )
  endif()
endforeach()