summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-08 01:20:52 +0200
committerSlávek Banko <[email protected]>2020-07-08 01:21:07 +0200
commit21fd56c7072548ecf1487c244006157c7af67a32 (patch)
treedf7af1f8a853e1862ecdb66cc5698270fdb6071a /tdefile-plugins
parent08a668ab207d7a0da16e730f34825baa5a78fa57 (diff)
downloadtdegraphics-21fd56c7072548ecf1487c244006157c7af67a32.tar.gz
tdegraphics-21fd56c7072548ecf1487c244006157c7af67a32.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 2a2437b3022a990bc9cded4d07c56a0d093b2a0c)
Diffstat (limited to 'tdefile-plugins')
-rw-r--r--tdefile-plugins/bmp/CMakeLists.txt2
-rw-r--r--tdefile-plugins/dds/CMakeLists.txt2
-rw-r--r--tdefile-plugins/dvi/CMakeLists.txt2
-rw-r--r--tdefile-plugins/exr/CMakeLists.txt2
-rw-r--r--tdefile-plugins/gif/CMakeLists.txt2
-rw-r--r--tdefile-plugins/ico/CMakeLists.txt2
-rw-r--r--tdefile-plugins/jpeg/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pcx/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pdf/CMakeLists.txt2
-rw-r--r--tdefile-plugins/png/CMakeLists.txt2
-rw-r--r--tdefile-plugins/pnm/CMakeLists.txt2
-rw-r--r--tdefile-plugins/ps/CMakeLists.txt12
-rw-r--r--tdefile-plugins/raw/CMakeLists.txt2
-rw-r--r--tdefile-plugins/rgb/CMakeLists.txt2
-rw-r--r--tdefile-plugins/tga/CMakeLists.txt2
-rw-r--r--tdefile-plugins/tiff/CMakeLists.txt2
-rw-r--r--tdefile-plugins/xbm/CMakeLists.txt2
-rw-r--r--tdefile-plugins/xpm/CMakeLists.txt2
18 files changed, 22 insertions, 24 deletions
diff --git a/tdefile-plugins/bmp/CMakeLists.txt b/tdefile-plugins/bmp/CMakeLists.txt
index 642646fe..4c5ddba5 100644
--- a/tdefile-plugins/bmp/CMakeLists.txt
+++ b/tdefile-plugins/bmp/CMakeLists.txt
@@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_bmp.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/dds/CMakeLists.txt b/tdefile-plugins/dds/CMakeLists.txt
index 987a13d5..d2f56ce6 100644
--- a/tdefile-plugins/dds/CMakeLists.txt
+++ b/tdefile-plugins/dds/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_dds.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/dvi/CMakeLists.txt b/tdefile-plugins/dvi/CMakeLists.txt
index 9de24e7d..55c1ef7d 100644
--- a/tdefile-plugins/dvi/CMakeLists.txt
+++ b/tdefile-plugins/dvi/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_dvi.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/exr/CMakeLists.txt b/tdefile-plugins/exr/CMakeLists.txt
index 2e96d6bc..0f022758 100644
--- a/tdefile-plugins/exr/CMakeLists.txt
+++ b/tdefile-plugins/exr/CMakeLists.txt
@@ -29,7 +29,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_exr.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/gif/CMakeLists.txt b/tdefile-plugins/gif/CMakeLists.txt
index 944a3f73..f7f9d9d0 100644
--- a/tdefile-plugins/gif/CMakeLists.txt
+++ b/tdefile-plugins/gif/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_gif.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/ico/CMakeLists.txt b/tdefile-plugins/ico/CMakeLists.txt
index 31974d18..886df0b4 100644
--- a/tdefile-plugins/ico/CMakeLists.txt
+++ b/tdefile-plugins/ico/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_ico.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/jpeg/CMakeLists.txt b/tdefile-plugins/jpeg/CMakeLists.txt
index 961f386b..f5f2aae5 100644
--- a/tdefile-plugins/jpeg/CMakeLists.txt
+++ b/tdefile-plugins/jpeg/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_jpeg.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pcx/CMakeLists.txt b/tdefile-plugins/pcx/CMakeLists.txt
index c60b7178..438e0ce9 100644
--- a/tdefile-plugins/pcx/CMakeLists.txt
+++ b/tdefile-plugins/pcx/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pcx.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pdf/CMakeLists.txt b/tdefile-plugins/pdf/CMakeLists.txt
index f710e343..8d01a571 100644
--- a/tdefile-plugins/pdf/CMakeLists.txt
+++ b/tdefile-plugins/pdf/CMakeLists.txt
@@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pdf.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/png/CMakeLists.txt b/tdefile-plugins/png/CMakeLists.txt
index bd96a23c..371aa775 100644
--- a/tdefile-plugins/png/CMakeLists.txt
+++ b/tdefile-plugins/png/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_png.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/pnm/CMakeLists.txt b/tdefile-plugins/pnm/CMakeLists.txt
index d55dc8ab..4896e21c 100644
--- a/tdefile-plugins/pnm/CMakeLists.txt
+++ b/tdefile-plugins/pnm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_pnm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/ps/CMakeLists.txt b/tdefile-plugins/ps/CMakeLists.txt
index 4be74072..8706f44a 100644
--- a/tdefile-plugins/ps/CMakeLists.txt
+++ b/tdefile-plugins/ps/CMakeLists.txt
@@ -25,13 +25,11 @@ link_directories(
#### other data #################################
-foreach( _desktop tdefile_ps.desktop gsthumbnail.desktop )
- tde_create_translated_desktop(
- SOURCE ${_desktop}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE tdefile_ps.desktop gsthumbnail.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR tdefile-desktops
+)
#### tdefile_ps (module) ########################
diff --git a/tdefile-plugins/raw/CMakeLists.txt b/tdefile-plugins/raw/CMakeLists.txt
index cc160df1..11a7c172 100644
--- a/tdefile-plugins/raw/CMakeLists.txt
+++ b/tdefile-plugins/raw/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_raw.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/rgb/CMakeLists.txt b/tdefile-plugins/rgb/CMakeLists.txt
index 3f4c58d9..01db22a9 100644
--- a/tdefile-plugins/rgb/CMakeLists.txt
+++ b/tdefile-plugins/rgb/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_rgb.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/tga/CMakeLists.txt b/tdefile-plugins/tga/CMakeLists.txt
index 2fdfcc7d..a40a823f 100644
--- a/tdefile-plugins/tga/CMakeLists.txt
+++ b/tdefile-plugins/tga/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_tga.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/tiff/CMakeLists.txt b/tdefile-plugins/tiff/CMakeLists.txt
index 13935c96..cd875145 100644
--- a/tdefile-plugins/tiff/CMakeLists.txt
+++ b/tdefile-plugins/tiff/CMakeLists.txt
@@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_tiff.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/xbm/CMakeLists.txt b/tdefile-plugins/xbm/CMakeLists.txt
index 59bb1368..76fd74e3 100644
--- a/tdefile-plugins/xbm/CMakeLists.txt
+++ b/tdefile-plugins/xbm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_xbm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)
diff --git a/tdefile-plugins/xpm/CMakeLists.txt b/tdefile-plugins/xpm/CMakeLists.txt
index 5d67d847..25df4f68 100644
--- a/tdefile-plugins/xpm/CMakeLists.txt
+++ b/tdefile-plugins/xpm/CMakeLists.txt
@@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdefile_xpm.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdefile-desktops
+ PO_DIR tdefile-desktops
)