summaryrefslogtreecommitdiffstats
path: root/tdehtml
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-25 13:36:35 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-25 13:36:35 +0200
commit42f3a62161d1b0c7047d1edfdcb8af72b7314f1b (patch)
tree10d7c5a75acd1f12d4685b24cfee471aff6bebf2 /tdehtml
parentaad2d9434f0357643c6ae388679e1f884c5bc519 (diff)
downloadtdelibs-42f3a62161d1b0c7047d1edfdcb8af72b7314f1b.tar.gz
tdelibs-42f3a62161d1b0c7047d1edfdcb8af72b7314f1b.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdehtml')
-rw-r--r--tdehtml/CMakeLists.txt12
-rw-r--r--tdehtml/java/CMakeLists.txt2
-rw-r--r--tdehtml/tdemultipart/CMakeLists.txt2
3 files changed, 7 insertions, 9 deletions
diff --git a/tdehtml/CMakeLists.txt b/tdehtml/CMakeLists.txt
index f133e5f6c..cb0aaa336 100644
--- a/tdehtml/CMakeLists.txt
+++ b/tdehtml/CMakeLists.txt
@@ -59,13 +59,11 @@ install( FILES
##### other data ################################
-foreach( _service tdehtml.desktop tdehtmlimage.desktop )
- tde_create_translated_desktop(
- SOURCE ${_service}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdehtml-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE tdehtml.desktop tdehtmlimage.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdehtml-desktops
+)
install( FILES tdehtml.rc tdehtml_browser.rc tdehtml_popupmenu.rc DESTINATION ${DATA_INSTALL_DIR}/tdehtml )
diff --git a/tdehtml/java/CMakeLists.txt b/tdehtml/java/CMakeLists.txt
index 38a45b24e..dd670cdce 100644
--- a/tdehtml/java/CMakeLists.txt
+++ b/tdehtml/java/CMakeLists.txt
@@ -42,7 +42,7 @@ configure_file( kjava.policy.in kjava.policy @ONLY )
tde_create_translated_desktop(
SOURCE kjavaappletviewer.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdehtml-desktops
+ PO_DIR tdehtml-desktops
)
install( FILES kjava.jar ${CMAKE_CURRENT_BINARY_DIR}/kjava.policy pluginsinfo DESTINATION ${DATA_INSTALL_DIR}/kjava )
diff --git a/tdehtml/tdemultipart/CMakeLists.txt b/tdehtml/tdemultipart/CMakeLists.txt
index a16c25978..65ca8733b 100644
--- a/tdehtml/tdemultipart/CMakeLists.txt
+++ b/tdehtml/tdemultipart/CMakeLists.txt
@@ -33,7 +33,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdemultipart.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdehtml-desktops
+ PO_DIR tdehtml-desktops
)