summaryrefslogtreecommitdiffstats
path: root/krec
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-08 01:19:10 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-08 01:19:10 +0200
commit57d55cfe629741a0c7b4f5d83792ae8546a17cde (patch)
tree4a01dbdb5ea438ae14dafde1c2d3771d79d6854e /krec
parentedc9d1c6c8b1b09071e42779391d141f5056d2bd (diff)
downloadtdemultimedia-57d55cfe629741a0c7b4f5d83792ae8546a17cde.tar.gz
tdemultimedia-57d55cfe629741a0c7b4f5d83792ae8546a17cde.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'krec')
-rw-r--r--krec/CMakeLists.txt18
-rw-r--r--krec/mp3_export/CMakeLists.txt2
-rw-r--r--krec/ogg_export/CMakeLists.txt2
3 files changed, 10 insertions, 12 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
)
diff --git a/krec/mp3_export/CMakeLists.txt b/krec/mp3_export/CMakeLists.txt
index b6addd07..06dcdd02 100644
--- a/krec/mp3_export/CMakeLists.txt
+++ b/krec/mp3_export/CMakeLists.txt
@@ -50,5 +50,5 @@ tde_add_kpart( libkrecexport_mp3 AUTOMOC
tde_create_translated_desktop(
SOURCE krec_exportmp3.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops
+ PO_DIR krec-desktops
)
diff --git a/krec/ogg_export/CMakeLists.txt b/krec/ogg_export/CMakeLists.txt
index 05d43019..4f33d3eb 100644
--- a/krec/ogg_export/CMakeLists.txt
+++ b/krec/ogg_export/CMakeLists.txt
@@ -50,5 +50,5 @@ tde_add_kpart( libkrecexport_ogg AUTOMOC
tde_create_translated_desktop(
SOURCE krec_exportogg.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/krec-desktops
+ PO_DIR krec-desktops
)