summaryrefslogtreecommitdiffstats
path: root/wallpapers/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'wallpapers/CMakeLists.txt')
-rw-r--r--wallpapers/CMakeLists.txt56
1 files changed, 19 insertions, 37 deletions
diff --git a/wallpapers/CMakeLists.txt b/wallpapers/CMakeLists.txt
index 9f4bf2f2..f0c05f28 100644
--- a/wallpapers/CMakeLists.txt
+++ b/wallpapers/CMakeLists.txt
@@ -3,46 +3,28 @@
# (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
#
#################################################
-install( FILES
- air.jpg air.jpg.desktop
- alien-night.jpg alien-night.jpg.desktop
- antique_chess.jpg antique_chess.jpg.desktop
- Appropriately-Left-Handed-2.jpg
- autumn_leaves.jpg autumn_leaves.jpg.desktop
- ayers_rock.jpg ayers_rock.jpg.desktop
- blue_angle_swirl.jpg
- bluegreencrisscross.jpg
- country_road.jpg country_road.jpg.desktop
- crystal_fire.png crystal_fire.png.desktop
- curls_on_green.jpg curls_on_green.jpg.desktop
- damselfly.jpg damselfly.jpg.desktop
- ethais.png ethais.png.desktop
- fulmine.jpg fulmine.jpg.desktop
- gear-flowers.svgz gear-flowers.svgz.desktop
- gold_crinkle.jpg
- golden_dome.jpg golden_dome.jpg.desktop
- harbour_bridge.jpg harbour_bridge.jpg.desktop
- kore.png kore.png.desktop
- kraftwurm.jpg kraftwurm.jpg.desktop
- kubical.png kubical.png.desktop
- lakeside.jpg lakeside.jpg.desktop
- landscape_keltern.jpg landscape_keltern.jpg.desktop
- manhattan.jpg manhattan.jpg.desktop
- mystical_rightturn.jpg mystical_rightturn.jpg.desktop
- panorama.jpg panorama.jpg.desktop
- sepia_mountain.jpg sepia_mountain.jpg.desktop
- storm_blue.jpg storm_blue.jpg.desktop
- storm_green.jpg storm_green.jpg.desktop
- sunset_field.jpg sunset_field.jpg.desktop
- Superfluous-Organ-1.jpg
- the_bay.jpg the_bay.jpg.desktop
- The-Good-Times-1.jpg
- vegetative_fog.jpg
- Water01.jpg
- DESTINATION ${WALLPAPER_INSTALL_DIR} )
+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()