summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:24:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:26:02 +0200
commit6995f12229909401d978cfd0cce61cb561818633 (patch)
tree81ffe4bd6046fe092f2ff8af21edfa60abde4f94
parent40f7d783acc83d3e658a95253bc2a77b7503f3cf (diff)
downloadtdetoys-6995f12229909401d978cfd0cce61cb561818633.tar.gz
tdetoys-6995f12229909401d978cfd0cce61cb561818633.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 3da95bc474b9b4ebc8d5f43b9eb5a6abcc15f600)
-rw-r--r--kteatime/CMakeLists.txt2
-rw-r--r--kweather/CMakeLists.txt15
-rw-r--r--kworldwatch/CMakeLists.txt6
-rw-r--r--kworldwatch/maps/depths/CMakeLists.txt2
-rw-r--r--kworldwatch/maps/flatworld/CMakeLists.txt2
5 files changed, 12 insertions, 15 deletions
diff --git a/kteatime/CMakeLists.txt b/kteatime/CMakeLists.txt
index 22311fd..0982ae4 100644
--- a/kteatime/CMakeLists.txt
+++ b/kteatime/CMakeLists.txt
@@ -44,7 +44,7 @@ tde_install_icons(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kteatime
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kteatime-eventsrc
+ PO_DIR kteatime-eventsrc
)
tde_create_translated_desktop( kteatime.desktop )
diff --git a/kweather/CMakeLists.txt b/kweather/CMakeLists.txt
index c4c7f44..1be2418 100644
--- a/kweather/CMakeLists.txt
+++ b/kweather/CMakeLists.txt
@@ -121,7 +121,7 @@ tde_create_translated_desktop(
SOURCE weather_stations.desktop
KEYWORDS name
DESTINATION ${DATA_INSTALL_DIR}/kweatherservice
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-stations
+ PO_DIR kweather-stations
)
install( FILES stations.dat
@@ -131,17 +131,14 @@ install( FILES stations.dat
tde_create_translated_desktop(
SOURCE kweather.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-desktops
+ PO_DIR kweather-desktops
)
-foreach( _service
+tde_create_translated_desktop(
+ SOURCE
kweatherservice.desktop
kcmweather.desktop
kcmweatherservice.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR kweather-desktops
)
- tde_create_translated_desktop(
- SOURCE ${_service}
- DESTINATION ${SERVICES_INSTALL_DIR}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kweather-desktops
- )
-endforeach()
diff --git a/kworldwatch/CMakeLists.txt b/kworldwatch/CMakeLists.txt
index 90c9d61..b183050 100644
--- a/kworldwatch/CMakeLists.txt
+++ b/kworldwatch/CMakeLists.txt
@@ -61,13 +61,13 @@ tde_install_icons( kworldclock )
tde_create_translated_desktop(
SOURCE kworldclock.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-desktops
+ PO_DIR kworldwatch-desktops
)
tde_create_translated_desktop(
SOURCE kdeworld.desktop
DESTINATION ${DATA_INSTALL_DIR}/kdesktop/programs
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-desktops
+ PO_DIR kworldwatch-desktops
)
install( FILES zone.tab
@@ -77,5 +77,5 @@ install( FILES zone.tab
tde_create_translated_desktop(
SOURCE kwwapplet.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-desktops
+ PO_DIR kworldwatch-desktops
)
diff --git a/kworldwatch/maps/depths/CMakeLists.txt b/kworldwatch/maps/depths/CMakeLists.txt
index 2d3d0c5..0b66487 100644
--- a/kworldwatch/maps/depths/CMakeLists.txt
+++ b/kworldwatch/maps/depths/CMakeLists.txt
@@ -19,5 +19,5 @@ install(
tde_create_translated_desktop(
SOURCE depths.desktop
DESTINATION ${DATA_INSTALL_DIR}/kworldclock/maps/depths
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-maps
+ PO_DIR kworldwatch-maps
)
diff --git a/kworldwatch/maps/flatworld/CMakeLists.txt b/kworldwatch/maps/flatworld/CMakeLists.txt
index 0981b13..a7f5541 100644
--- a/kworldwatch/maps/flatworld/CMakeLists.txt
+++ b/kworldwatch/maps/flatworld/CMakeLists.txt
@@ -19,5 +19,5 @@ install(
tde_create_translated_desktop(
SOURCE flatworld.desktop
DESTINATION ${DATA_INSTALL_DIR}/kworldclock/maps/flatworld
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldwatch-maps
+ PO_DIR kworldwatch-maps
)