summaryrefslogtreecommitdiffstats
path: root/kworldclock/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kworldclock/CMakeLists.txt')
-rw-r--r--kworldclock/CMakeLists.txt30
1 files changed, 24 insertions, 6 deletions
diff --git a/kworldclock/CMakeLists.txt b/kworldclock/CMakeLists.txt
index a255f2da..2f359034 100644
--- a/kworldclock/CMakeLists.txt
+++ b/kworldclock/CMakeLists.txt
@@ -3,15 +3,33 @@
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (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
#
#################################################
-add_subdirectory( alt )
-add_subdirectory( bio )
-add_subdirectory( caida )
-add_subdirectory( caida_bw )
-add_subdirectory( mggd )
-add_subdirectory( rainfall )
+file( GLOB _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
+list( SORT _themes )
+
+foreach( _theme IN LISTS _themes )
+ if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_theme} AND
+ EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_theme}/${_theme}.desktop )
+ file( GLOB _map_images RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_theme}/*.jpg )
+ list( SORT _map_images )
+
+ install(
+ FILES ${_map_images}
+ DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}"
+ )
+
+ tde_create_translated_desktop(
+ SOURCE ${_theme}/${_theme}.desktop
+ DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}"
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
+ )
+ endif()
+endforeach()