summaryrefslogtreecommitdiffstats
path: root/kweather
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:24:15 +0200
commit3da95bc474b9b4ebc8d5f43b9eb5a6abcc15f600 (patch)
tree386be0568736be2c9b5aaead1f9ca86ce887e9f9 /kweather
parent48476ecad361178ba663230f97953a761ef3765c (diff)
downloadtdetoys-3da95bc474b9b4ebc8d5f43b9eb5a6abcc15f600.tar.gz
tdetoys-3da95bc474b9b4ebc8d5f43b9eb5a6abcc15f600.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kweather')
-rw-r--r--kweather/CMakeLists.txt15
1 files changed, 6 insertions, 9 deletions
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()