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 --- tdeioslave/bzip2/CMakeLists.txt | 2 +- tdeioslave/file/CMakeLists.txt | 2 +- tdeioslave/ftp/CMakeLists.txt | 2 +- tdeioslave/gzip/CMakeLists.txt | 2 +- tdeioslave/http/CMakeLists.txt | 11 ++++------- tdeioslave/http/kcookiejar/CMakeLists.txt | 2 +- tdeioslave/iso/CMakeLists.txt | 8 ++++---- tdeioslave/metainfo/CMakeLists.txt | 2 +- tdeioslave/xz/CMakeLists.txt | 2 +- 9 files changed, 15 insertions(+), 18 deletions(-) (limited to 'tdeioslave') diff --git a/tdeioslave/bzip2/CMakeLists.txt b/tdeioslave/bzip2/CMakeLists.txt index f712a2369..5a7fef53a 100644 --- a/tdeioslave/bzip2/CMakeLists.txt +++ b/tdeioslave/bzip2/CMakeLists.txt @@ -27,7 +27,7 @@ link_directories( tde_create_translated_desktop( SOURCE kbzip2filter.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/file/CMakeLists.txt b/tdeioslave/file/CMakeLists.txt index 783c002dd..6456e962b 100644 --- a/tdeioslave/file/CMakeLists.txt +++ b/tdeioslave/file/CMakeLists.txt @@ -35,7 +35,7 @@ install( FILES file.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdeio ) tde_create_translated_desktop( SOURCE file.protocol DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/ftp/CMakeLists.txt b/tdeioslave/ftp/CMakeLists.txt index bc0c764b7..7ef877e9d 100644 --- a/tdeioslave/ftp/CMakeLists.txt +++ b/tdeioslave/ftp/CMakeLists.txt @@ -29,7 +29,7 @@ link_directories( tde_create_translated_desktop( SOURCE ftp.protocol DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/gzip/CMakeLists.txt b/tdeioslave/gzip/CMakeLists.txt index ae4e6563c..9d05d57de 100644 --- a/tdeioslave/gzip/CMakeLists.txt +++ b/tdeioslave/gzip/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( tde_create_translated_desktop( SOURCE kgzipfilter.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/http/CMakeLists.txt b/tdeioslave/http/CMakeLists.txt index c29782570..a1a6c296a 100644 --- a/tdeioslave/http/CMakeLists.txt +++ b/tdeioslave/http/CMakeLists.txt @@ -32,16 +32,13 @@ link_directories( ##### other data ################################ -foreach( _desktop +tde_create_translated_desktop( + SOURCE http_cache_cleaner.desktop http.protocol https.protocol webdav.protocol webdavs.protocol + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR tdeioslave-desktops ) - tde_create_translated_desktop( - SOURCE ${_desktop} - DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops - ) -endforeach() ##### tdeio_http_cache_cleaner #################### diff --git a/tdeioslave/http/kcookiejar/CMakeLists.txt b/tdeioslave/http/kcookiejar/CMakeLists.txt index 57feb62b2..5bf804615 100644 --- a/tdeioslave/http/kcookiejar/CMakeLists.txt +++ b/tdeioslave/http/kcookiejar/CMakeLists.txt @@ -30,7 +30,7 @@ link_directories( tde_create_translated_desktop( SOURCE kcookiejar.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) install( FILES kcookiescfg.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) diff --git a/tdeioslave/iso/CMakeLists.txt b/tdeioslave/iso/CMakeLists.txt index b26827a2d..baf35cfd3 100644 --- a/tdeioslave/iso/CMakeLists.txt +++ b/tdeioslave/iso/CMakeLists.txt @@ -33,25 +33,25 @@ link_directories( tde_create_translated_desktop( SOURCE iso.protocol DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) tde_create_translated_desktop( SOURCE isoservice.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) tde_create_translated_desktop( SOURCE tdeio_isorc DESTINATION ${CONFIG_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) tde_create_translated_desktop( SOURCE tdeio_iso.desktop DESTINATION ${APPS_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/metainfo/CMakeLists.txt b/tdeioslave/metainfo/CMakeLists.txt index e5903415e..11c55f7c1 100644 --- a/tdeioslave/metainfo/CMakeLists.txt +++ b/tdeioslave/metainfo/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( tde_create_translated_desktop( SOURCE metainfo.protocol DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) diff --git a/tdeioslave/xz/CMakeLists.txt b/tdeioslave/xz/CMakeLists.txt index 484ab1238..c601453b6 100644 --- a/tdeioslave/xz/CMakeLists.txt +++ b/tdeioslave/xz/CMakeLists.txt @@ -27,7 +27,7 @@ link_directories( tde_create_translated_desktop( SOURCE kxzfilter.desktop DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeioslave-desktops + PO_DIR tdeioslave-desktops ) -- cgit v1.2.1