From 42f3a62161d1b0c7047d1edfdcb8af72b7314f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 25 Jun 2020 13:36:35 +0200 Subject: Simplify CMake rules for desktop file translations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- interfaces/khexedit/CMakeLists.txt | 2 +- interfaces/kregexpeditor/CMakeLists.txt | 2 +- interfaces/kspeech/CMakeLists.txt | 2 +- interfaces/tdeimproxy/interface/CMakeLists.txt | 4 ++-- interfaces/tdemediaplayer/CMakeLists.txt | 11 ++++------- interfaces/tdescript/CMakeLists.txt | 2 +- interfaces/tdescript/sample/CMakeLists.txt | 2 +- interfaces/tdetexteditor/CMakeLists.txt | 13 +++++-------- 8 files changed, 16 insertions(+), 22 deletions(-) (limited to 'interfaces') diff --git a/interfaces/khexedit/CMakeLists.txt b/interfaces/khexedit/CMakeLists.txt index 0150da49f..a94dfd66b 100644 --- a/interfaces/khexedit/CMakeLists.txt +++ b/interfaces/khexedit/CMakeLists.txt @@ -22,5 +22,5 @@ install( FILES tde_create_translated_desktop( SOURCE kbytesedit.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/kregexpeditor/CMakeLists.txt b/interfaces/kregexpeditor/CMakeLists.txt index 9781763d1..4010eb538 100644 --- a/interfaces/kregexpeditor/CMakeLists.txt +++ b/interfaces/kregexpeditor/CMakeLists.txt @@ -20,5 +20,5 @@ install( FILES tde_create_translated_desktop( SOURCE kregexpeditor.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/kspeech/CMakeLists.txt b/interfaces/kspeech/CMakeLists.txt index 274e6e731..8bed797e9 100644 --- a/interfaces/kspeech/CMakeLists.txt +++ b/interfaces/kspeech/CMakeLists.txt @@ -21,5 +21,5 @@ install( FILES tde_create_translated_desktop( SOURCE dcoptexttospeech.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/tdeimproxy/interface/CMakeLists.txt b/interfaces/tdeimproxy/interface/CMakeLists.txt index 1c722de02..8712afafe 100644 --- a/interfaces/tdeimproxy/interface/CMakeLists.txt +++ b/interfaces/tdeimproxy/interface/CMakeLists.txt @@ -21,11 +21,11 @@ install( FILES tde_create_translated_desktop( SOURCE kcm_instantmessenger.desktop DESTINATION ${DATA_INSTALL_DIR}/kcm_componentchooser - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) tde_create_translated_desktop( SOURCE dcopinstantmessenger.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/tdemediaplayer/CMakeLists.txt b/interfaces/tdemediaplayer/CMakeLists.txt index ba0a8c475..549a9a794 100644 --- a/interfaces/tdemediaplayer/CMakeLists.txt +++ b/interfaces/tdemediaplayer/CMakeLists.txt @@ -38,16 +38,13 @@ install( FILES ##### other data ################################ -foreach( _service +tde_create_translated_desktop( + SOURCE tdemediaplayerengine.desktop tdemediaplayer.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR interfaces-desktops ) - tde_create_translated_desktop( - SOURCE ${_service} - DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops - ) -endforeach() ##### tdemediaplayer ############################## diff --git a/interfaces/tdescript/CMakeLists.txt b/interfaces/tdescript/CMakeLists.txt index 276c6fb94..27d763925 100644 --- a/interfaces/tdescript/CMakeLists.txt +++ b/interfaces/tdescript/CMakeLists.txt @@ -40,7 +40,7 @@ install( FILES tde_create_translated_desktop( SOURCE scriptinterface.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/tdescript/sample/CMakeLists.txt b/interfaces/tdescript/sample/CMakeLists.txt index 8356f6ac8..b62bbd481 100644 --- a/interfaces/tdescript/sample/CMakeLists.txt +++ b/interfaces/tdescript/sample/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( tde_create_translated_desktop( SOURCE shellscript.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) diff --git a/interfaces/tdetexteditor/CMakeLists.txt b/interfaces/tdetexteditor/CMakeLists.txt index 1849af27e..fdfdf228f 100644 --- a/interfaces/tdetexteditor/CMakeLists.txt +++ b/interfaces/tdetexteditor/CMakeLists.txt @@ -51,22 +51,19 @@ install( FILES ##### other data ################################ -foreach( _service +tde_create_translated_desktop( + SOURCE tdetexteditor.desktop tdetexteditoreditor.desktop tdetexteditorplugin.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR interfaces-desktops ) - tde_create_translated_desktop( - SOURCE ${_service} - DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops - ) -endforeach() tde_create_translated_desktop( SOURCE kcm_tdetexteditor.desktop DESTINATION ${DATA_INSTALL_DIR}/kcm_componentchooser - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops + PO_DIR interfaces-desktops ) -- cgit v1.2.1