diff options
author | Slávek Banko <[email protected]> | 2020-07-10 03:16:29 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-07-10 03:16:29 +0200 |
commit | bf6e319e3d75269c9155d4f97401e4e9553880d4 (patch) | |
tree | 5a60545255247279b915294bceb680a9bb059224 | |
parent | fab9343d3b25226185d12225fb0a025001a4a60f (diff) | |
download | kbarcode-bf6e319e3d75269c9155d4f97401e4e9553880d4.tar.gz kbarcode-bf6e319e3d75269c9155d4f97401e4e9553880d4.zip |
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | fileplugin/CMakeLists.txt | 1 | ||||
-rw-r--r-- | kbarcode/CMakeLists.txt | 11 |
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( |