diff options
author | Slávek Banko <[email protected]> | 2020-07-08 01:19:10 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-08 01:19:44 +0200 |
commit | d85138e2f298203078304d2e57d8ee66a6b3e377 (patch) | |
tree | 2b718dba79531e77cb6b0d9f62e820370dfae55d /kappfinder-data/CMakeLists.txt | |
parent | a0b27c9ebcdb566823f816fca011e117949a9ad9 (diff) | |
download | tdemultimedia-d85138e2f298203078304d2e57d8ee66a6b3e377.tar.gz tdemultimedia-d85138e2f298203078304d2e57d8ee66a6b3e377.zip |
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 57d55cfe629741a0c7b4f5d83792ae8546a17cde)
Diffstat (limited to 'kappfinder-data/CMakeLists.txt')
-rw-r--r-- | kappfinder-data/CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/kappfinder-data/CMakeLists.txt b/kappfinder-data/CMakeLists.txt index c1974fdb..75ce5026 100644 --- a/kappfinder-data/CMakeLists.txt +++ b/kappfinder-data/CMakeLists.txt @@ -11,18 +11,17 @@ file( GLOB _multimedia_desktops RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop ) list( SORT _multimedia_desktops ) -foreach( _desktop IN LISTS _multimedia_desktops ) - tde_create_translated_desktop( - SOURCE ${_desktop} - DESTINATION ${DATA_INSTALL_DIR}/kappfinder/apps/Multimedia - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kappfinder-data - ) -endforeach() + +tde_create_translated_desktop( + SOURCE ${_multimedia_desktops} + DESTINATION ${DATA_INSTALL_DIR}/kappfinder/apps/Multimedia + PO_DIR kappfinder-data +) tde_create_translated_desktop( SOURCE tde-multimedia-music.directory DESTINATION ${XDG_DIRECTORY_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kappfinder-data + PO_DIR kappfinder-data ) install( |