From 21fd56c7072548ecf1487c244006157c7af67a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 8 Jul 2020 01:20:52 +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 (cherry picked from commit 2a2437b3022a990bc9cded4d07c56a0d093b2a0c) --- kview/CMakeLists.txt | 2 +- kview/config/CMakeLists.txt | 2 +- kview/config/plugins/CMakeLists.txt | 2 +- kview/kimageviewer/CMakeLists.txt | 12 +++++------- kview/kviewcanvas/CMakeLists.txt | 2 +- kview/kviewcanvas/config/CMakeLists.txt | 2 +- kview/kviewviewer/CMakeLists.txt | 2 +- kview/kviewviewer/config/CMakeLists.txt | 2 +- kview/modules/browser/CMakeLists.txt | 2 +- kview/modules/effects/CMakeLists.txt | 2 +- kview/modules/presenter/CMakeLists.txt | 2 +- kview/modules/presenter/config/CMakeLists.txt | 2 +- kview/modules/scanner/CMakeLists.txt | 2 +- kview/photobook/CMakeLists.txt | 2 +- 14 files changed, 18 insertions(+), 20 deletions(-) (limited to 'kview') diff --git a/kview/CMakeLists.txt b/kview/CMakeLists.txt index c75c7c75..8d6eed7e 100644 --- a/kview/CMakeLists.txt +++ b/kview/CMakeLists.txt @@ -34,7 +34,7 @@ tde_install_icons( kview ) tde_create_translated_desktop( SOURCE kview.desktop - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( FILES kviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kview ) diff --git a/kview/config/CMakeLists.txt b/kview/config/CMakeLists.txt index 6485b86e..5fc252ea 100644 --- a/kview/config/CMakeLists.txt +++ b/kview/config/CMakeLists.txt @@ -27,7 +27,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewgeneralconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( FILES kview.setdlg DESTINATION ${DATA_INSTALL_DIR}/kview ) diff --git a/kview/config/plugins/CMakeLists.txt b/kview/config/plugins/CMakeLists.txt index 0e2143ea..9cbbb47a 100644 --- a/kview/config/plugins/CMakeLists.txt +++ b/kview/config/plugins/CMakeLists.txt @@ -25,7 +25,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewpluginsconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) diff --git a/kview/kimageviewer/CMakeLists.txt b/kview/kimageviewer/CMakeLists.txt index c3f25961..094da7c8 100644 --- a/kview/kimageviewer/CMakeLists.txt +++ b/kview/kimageviewer/CMakeLists.txt @@ -22,13 +22,11 @@ link_directories( ##### other data ################################ -foreach( _service kimageviewercanvas.desktop kimageviewer.desktop ) - tde_create_translated_desktop( - SOURCE ${_service} - DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops - ) -endforeach() +tde_create_translated_desktop( + SOURCE kimageviewercanvas.desktop kimageviewer.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR kview-desktops +) ##### kimageviewer (shared) ##################### diff --git a/kview/kviewcanvas/CMakeLists.txt b/kview/kviewcanvas/CMakeLists.txt index 0a369641..2c62d6eb 100644 --- a/kview/kviewcanvas/CMakeLists.txt +++ b/kview/kviewcanvas/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewcanvas.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) diff --git a/kview/kviewcanvas/config/CMakeLists.txt b/kview/kviewcanvas/config/CMakeLists.txt index fa775d1c..eb730680 100644 --- a/kview/kviewcanvas/config/CMakeLists.txt +++ b/kview/kviewcanvas/config/CMakeLists.txt @@ -25,7 +25,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewcanvasconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) diff --git a/kview/kviewviewer/CMakeLists.txt b/kview/kviewviewer/CMakeLists.txt index c2bfc245..61e738fb 100644 --- a/kview/kviewviewer/CMakeLists.txt +++ b/kview/kviewviewer/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewviewer.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( FILES kviewviewer.rc kviewviewer_ro.rc kviewpopup.rc DESTINATION ${DATA_INSTALL_DIR}/kviewviewer ) diff --git a/kview/kviewviewer/config/CMakeLists.txt b/kview/kviewviewer/config/CMakeLists.txt index e0d422dd..7ab9ee80 100644 --- a/kview/kviewviewer/config/CMakeLists.txt +++ b/kview/kviewviewer/config/CMakeLists.txt @@ -25,7 +25,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewviewerpluginsconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) diff --git a/kview/modules/browser/CMakeLists.txt b/kview/modules/browser/CMakeLists.txt index b1b26f6c..933a2523 100644 --- a/kview/modules/browser/CMakeLists.txt +++ b/kview/modules/browser/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewbrowser.desktop DESTINATION ${DATA_INSTALL_DIR}/kviewviewer/kpartplugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( diff --git a/kview/modules/effects/CMakeLists.txt b/kview/modules/effects/CMakeLists.txt index cf80fe5b..bf905f66 100644 --- a/kview/modules/effects/CMakeLists.txt +++ b/kview/modules/effects/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( tde_create_translated_desktop( SOURCE kvieweffects.desktop DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( diff --git a/kview/modules/presenter/CMakeLists.txt b/kview/modules/presenter/CMakeLists.txt index afe5de2e..c50266af 100644 --- a/kview/modules/presenter/CMakeLists.txt +++ b/kview/modules/presenter/CMakeLists.txt @@ -29,7 +29,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewpresenter.desktop DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( diff --git a/kview/modules/presenter/config/CMakeLists.txt b/kview/modules/presenter/config/CMakeLists.txt index 97ede844..3432b3ed 100644 --- a/kview/modules/presenter/config/CMakeLists.txt +++ b/kview/modules/presenter/config/CMakeLists.txt @@ -25,7 +25,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewpresenterconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) diff --git a/kview/modules/scanner/CMakeLists.txt b/kview/modules/scanner/CMakeLists.txt index bbe5eb73..c7db3a61 100644 --- a/kview/modules/scanner/CMakeLists.txt +++ b/kview/modules/scanner/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( tde_create_translated_desktop( SOURCE kviewscanner.desktop DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( diff --git a/kview/photobook/CMakeLists.txt b/kview/photobook/CMakeLists.txt index 657d85fd..74a1ea04 100644 --- a/kview/photobook/CMakeLists.txt +++ b/kview/photobook/CMakeLists.txt @@ -27,7 +27,7 @@ tde_install_icons( photobook ) tde_create_translated_desktop( SOURCE photobook.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops + PO_DIR kview-desktops ) install( FILES photobookui.rc DESTINATION ${DATA_INSTALL_DIR}/photobook ) -- cgit v1.2.3