diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-09 03:35:29 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-09 03:35:51 +0200 |
commit | a22f9a51cca647a6a194bccc338800fcba2de39d (patch) | |
tree | 07894962afddd872b8672e8f17cb69e26025eb74 /kig | |
parent | 05f4389305dbb19194dbb5f6a1ad762a74057119 (diff) | |
download | tdeedu-a22f9a51cca647a6a194bccc338800fcba2de39d.tar.gz tdeedu-a22f9a51cca647a6a194bccc338800fcba2de39d.zip |
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b845a73b7eb95f7928b2079b8a594a6b7b2ccb7d)
Diffstat (limited to 'kig')
-rw-r--r-- | kig/kig/CMakeLists.txt | 4 | ||||
-rw-r--r-- | kig/mimetypes/CMakeLists.txt | 11 | ||||
-rw-r--r-- | kig/tdefile/CMakeLists.txt | 12 |
3 files changed, 11 insertions, 16 deletions
diff --git a/kig/kig/CMakeLists.txt b/kig/kig/CMakeLists.txt index 166cd370..8134f923 100644 --- a/kig/kig/CMakeLists.txt +++ b/kig/kig/CMakeLists.txt @@ -58,11 +58,11 @@ install( tde_create_translated_desktop( SOURCE kig.desktop - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops + PO_DIR kig-desktops ) tde_create_translated_desktop( SOURCE kig_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops + PO_DIR kig-desktops ) diff --git a/kig/mimetypes/CMakeLists.txt b/kig/mimetypes/CMakeLists.txt index 468bba81..4a606f3f 100644 --- a/kig/mimetypes/CMakeLists.txt +++ b/kig/mimetypes/CMakeLists.txt @@ -23,16 +23,13 @@ install( DESTINATION ${CONFIG_INSTALL_DIR}/magic ) -foreach( _mimetype +tde_create_translated_desktop( + SOURCE x-kig.desktop x-kgeo.desktop x-kseg.desktop x-cabri.desktop x-drgeo.desktop + DESTINATION ${MIME_INSTALL_DIR}/application + PO_DIR kig-mimetypes ) - tde_create_translated_desktop( - SOURCE ${_mimetype} - DESTINATION ${MIME_INSTALL_DIR}/application - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-mimetypes - ) -endforeach() diff --git a/kig/tdefile/CMakeLists.txt b/kig/tdefile/CMakeLists.txt index 9d4ad579..0f74ec84 100644 --- a/kig/tdefile/CMakeLists.txt +++ b/kig/tdefile/CMakeLists.txt @@ -44,10 +44,8 @@ tde_add_kpart( tdefile_kig AUTOMOC ##### other data -foreach( _tdefile tdefile_drgeo.desktop tdefile_kig.desktop ) - tde_create_translated_desktop( - SOURCE ${_tdefile} - DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-tdefile - ) -endforeach() +tde_create_translated_desktop( + SOURCE tdefile_drgeo.desktop tdefile_kig.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kig-tdefile +) |