You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeartwork/kworldclock/CMakeLists.txt

36 lines
1000 B

#################################################
#
# (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
#
#################################################
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 kworldclock-themes
)
endif()
endforeach()