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 --- tdeprint/CMakeLists.txt | 4 ++-- tdeprint/cups/CMakeLists.txt | 2 +- tdeprint/ext/CMakeLists.txt | 2 +- tdeprint/filters/CMakeLists.txt | 11 ++++------- tdeprint/lpdunix/CMakeLists.txt | 2 +- tdeprint/lpr/CMakeLists.txt | 2 +- tdeprint/rlpr/CMakeLists.txt | 2 +- tdeprint/tools/escputil/CMakeLists.txt | 2 +- 8 files changed, 12 insertions(+), 15 deletions(-) (limited to 'tdeprint') diff --git a/tdeprint/CMakeLists.txt b/tdeprint/CMakeLists.txt index 72c8517e7..df4cd978d 100644 --- a/tdeprint/CMakeLists.txt +++ b/tdeprint/CMakeLists.txt @@ -65,13 +65,13 @@ install( FILES testprint.ps DESTINATION ${DATA_INSTALL_DIR}/tdeprint ) tde_create_translated_desktop( SOURCE specials.desktop DESTINATION ${DATA_INSTALL_DIR}/tdeprint - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) tde_create_translated_desktop( SOURCE tdeprintd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) install( FILES tdeprintrc DESTINATION ${CONFIG_INSTALL_DIR} ) diff --git a/tdeprint/cups/CMakeLists.txt b/tdeprint/cups/CMakeLists.txt index 8377d60be..831c4db83 100644 --- a/tdeprint/cups/CMakeLists.txt +++ b/tdeprint/cups/CMakeLists.txt @@ -43,7 +43,7 @@ link_directories( tde_create_translated_desktop( SOURCE cups.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) install( FILES preview.png preview-mini.png DESTINATION ${DATA_INSTALL_DIR}/tdeprint ) diff --git a/tdeprint/ext/CMakeLists.txt b/tdeprint/ext/CMakeLists.txt index f974e490a..58acf9c99 100644 --- a/tdeprint/ext/CMakeLists.txt +++ b/tdeprint/ext/CMakeLists.txt @@ -34,7 +34,7 @@ link_directories( tde_create_translated_desktop( SOURCE ext.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) diff --git a/tdeprint/filters/CMakeLists.txt b/tdeprint/filters/CMakeLists.txt index 4ef77f94f..3915eee6c 100644 --- a/tdeprint/filters/CMakeLists.txt +++ b/tdeprint/filters/CMakeLists.txt @@ -11,20 +11,17 @@ ##### other data ################################ -foreach( _desktop +tde_create_translated_desktop( + SOURCE enscript.desktop psnup.desktop imagetops.desktop pdfwrite.desktop psbook1.desktop psbook2.desktop psbook.desktop psselect.desktop ps2pdf.desktop pdf2ps.desktop poster.desktop + DESTINATION ${DATA_INSTALL_DIR}/tdeprint/filters + PO_DIR tdeprint-desktops ) - tde_create_translated_desktop( - SOURCE ${_desktop} - DESTINATION ${DATA_INSTALL_DIR}/tdeprint/filters - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops - ) -endforeach() install( FILES diff --git a/tdeprint/lpdunix/CMakeLists.txt b/tdeprint/lpdunix/CMakeLists.txt index c4afcfb1a..915e49922 100644 --- a/tdeprint/lpdunix/CMakeLists.txt +++ b/tdeprint/lpdunix/CMakeLists.txt @@ -36,7 +36,7 @@ link_directories( tde_create_translated_desktop( SOURCE lpdunix.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) diff --git a/tdeprint/lpr/CMakeLists.txt b/tdeprint/lpr/CMakeLists.txt index 0950a490e..dfd932150 100644 --- a/tdeprint/lpr/CMakeLists.txt +++ b/tdeprint/lpr/CMakeLists.txt @@ -44,7 +44,7 @@ install( FILES tde_create_translated_desktop( SOURCE lpr.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) install( FILES apsdriver1 apsdriver2 lprngtooldriver1 DESTINATION ${DATA_INSTALL_DIR}/tdeprint ) diff --git a/tdeprint/rlpr/CMakeLists.txt b/tdeprint/rlpr/CMakeLists.txt index 2918dc840..b72ed272f 100644 --- a/tdeprint/rlpr/CMakeLists.txt +++ b/tdeprint/rlpr/CMakeLists.txt @@ -37,7 +37,7 @@ link_directories( tde_create_translated_desktop( SOURCE rlpr.print DESTINATION ${DATA_INSTALL_DIR}/tdeprint/plugins - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) diff --git a/tdeprint/tools/escputil/CMakeLists.txt b/tdeprint/tools/escputil/CMakeLists.txt index 7a0caac02..13ea08eb8 100644 --- a/tdeprint/tools/escputil/CMakeLists.txt +++ b/tdeprint/tools/escputil/CMakeLists.txt @@ -27,7 +27,7 @@ link_directories( tde_create_translated_desktop( SOURCE escputil.desktop DESTINATION ${DATA_INSTALL_DIR}/tdeprint/tools - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeprint-desktops + PO_DIR tdeprint-desktops ) -- cgit v1.2.1