summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-10 03:16:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-10 03:16:42 +0200
commitf01c1d9f60b0d6907482250b449361d4ff94e5c3 (patch)
tree0e073fe5071623f329320c0ef680f3b8507c39e4
parentc7f8b08b5cff4a386fe2717936659d225aa68719 (diff)
downloadkbarcode-f01c1d9f60b0d6907482250b449361d4ff94e5c3.tar.gz
kbarcode-f01c1d9f60b0d6907482250b449361d4ff94e5c3.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bf6e319e3d75269c9155d4f97401e4e9553880d4)
-rw-r--r--fileplugin/CMakeLists.txt1
-rw-r--r--kbarcode/CMakeLists.txt11
2 files changed, 3 insertions, 9 deletions
diff --git a/fileplugin/CMakeLists.txt b/fileplugin/CMakeLists.txt
index 1bf79a9..bd9debe 100644
--- a/fileplugin/CMakeLists.txt
+++ b/fileplugin/CMakeLists.txt
@@ -31,5 +31,4 @@ tde_add_kpart( tdefile_kbarcode AUTOMOC
tde_create_translated_desktop(
SOURCE tdefile_kbarcode.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
diff --git a/kbarcode/CMakeLists.txt b/kbarcode/CMakeLists.txt
index dbfaab2..08984ee 100644
--- a/kbarcode/CMakeLists.txt
+++ b/kbarcode/CMakeLists.txt
@@ -70,23 +70,18 @@ tde_install_icons( )
##### other data
-foreach( _desktop
+tde_create_translated_desktop(
+ SOURCE
${PROJECT_NAME}.desktop
${PROJECT_NAME}-batch.desktop
${PROJECT_NAME}-editor.desktop
${PROJECT_NAME}-single.desktop
- )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
- )
-endforeach( )
+)
tde_create_translated_desktop(
SOURCE ${PROJECT_NAME}-label.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
install(