summaryrefslogtreecommitdiffstats
path: root/tdeprint
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-25 13:36:35 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-25 13:36:35 +0200
commit42f3a62161d1b0c7047d1edfdcb8af72b7314f1b (patch)
tree10d7c5a75acd1f12d4685b24cfee471aff6bebf2 /tdeprint
parentaad2d9434f0357643c6ae388679e1f884c5bc519 (diff)
downloadtdelibs-42f3a62161d1b0c7047d1edfdcb8af72b7314f1b.tar.gz
tdelibs-42f3a62161d1b0c7047d1edfdcb8af72b7314f1b.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeprint')
-rw-r--r--tdeprint/CMakeLists.txt4
-rw-r--r--tdeprint/cups/CMakeLists.txt2
-rw-r--r--tdeprint/ext/CMakeLists.txt2
-rw-r--r--tdeprint/filters/CMakeLists.txt11
-rw-r--r--tdeprint/lpdunix/CMakeLists.txt2
-rw-r--r--tdeprint/lpr/CMakeLists.txt2
-rw-r--r--tdeprint/rlpr/CMakeLists.txt2
-rw-r--r--tdeprint/tools/escputil/CMakeLists.txt2
8 files changed, 12 insertions, 15 deletions
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
)