diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-08 01:19:10 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-08 01:19:44 +0200 |
commit | d85138e2f298203078304d2e57d8ee66a6b3e377 (patch) | |
tree | 2b718dba79531e77cb6b0d9f62e820370dfae55d /krec/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 <slavek.banko@axis.cz>
(cherry picked from commit 57d55cfe629741a0c7b4f5d83792ae8546a17cde)
Diffstat (limited to 'krec/CMakeLists.txt')
-rw-r--r-- | krec/CMakeLists.txt | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/krec/CMakeLists.txt b/krec/CMakeLists.txt index 834cb1f7..c5aadced 100644 --- a/krec/CMakeLists.txt +++ b/krec/CMakeLists.txt @@ -113,29 +113,27 @@ tde_add_kpart( libkrecexport_wave AUTOMOC tde_create_translated_desktop( SOURCE krec.desktop - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops + PO_DIR krec-desktops ) install( FILES krecui.rc DESTINATION ${DATA_INSTALL_DIR}/krec ) -foreach( _service kcm_krec.desktop kcm_krec_files.desktop ) - tde_create_translated_desktop( - SOURCE ${_service} - DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops - ) -endforeach() +tde_create_translated_desktop( + SOURCE kcm_krec.desktop kcm_krec_files.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR krec-desktops +) install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/krec ) tde_create_translated_desktop( SOURCE krec_exportitem.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops + PO_DIR krec-desktops ) tde_create_translated_desktop( SOURCE krec_exportwave.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops + PO_DIR krec-desktops ) |