summaryrefslogtreecommitdiffstats
path: root/keduca/resources
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:35:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:35:29 +0200
commitb845a73b7eb95f7928b2079b8a594a6b7b2ccb7d (patch)
tree79ca22951a02842a86a5541461ad44da10e2eb56 /keduca/resources
parent1e72386cece59edb0f54a88abe41dab15b731edd (diff)
downloadtdeedu-b845a73b7eb95f7928b2079b8a594a6b7b2ccb7d.tar.gz
tdeedu-b845a73b7eb95f7928b2079b8a594a6b7b2ccb7d.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'keduca/resources')
-rw-r--r--keduca/resources/CMakeLists.txt22
1 files changed, 9 insertions, 13 deletions
diff --git a/keduca/resources/CMakeLists.txt b/keduca/resources/CMakeLists.txt
index 58a3e7bb..7f39f3e4 100644
--- a/keduca/resources/CMakeLists.txt
+++ b/keduca/resources/CMakeLists.txt
@@ -9,17 +9,13 @@ tde_install_icons( )
##### other data
-foreach( _mimetype x-edu.desktop x-edugallery.desktop )
- tde_create_translated_desktop(
- SOURCE ${_mimetype}
- DESTINATION ${MIME_INSTALL_DIR}/application
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-mimetypes
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE x-edu.desktop x-edugallery.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR keduca-mimetypes
+)
-foreach( _desktop keduca.desktop keducabuilder.desktop )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE keduca.desktop keducabuilder.desktop
+ PO_DIR keduca-desktops
+)