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:29 +0200 |
commit | b845a73b7eb95f7928b2079b8a594a6b7b2ccb7d (patch) | |
tree | 79ca22951a02842a86a5541461ad44da10e2eb56 /kig | |
parent | 1e72386cece59edb0f54a88abe41dab15b731edd (diff) | |
download | tdeedu-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 '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 +) |