Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3da95bc474)
r14.0.x
Slávek Banko 4 years ago
parent 40f7d783ac
commit 6995f12229
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 )

@ -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()

@ -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
)

@ -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
)

@ -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
)

Loading…
Cancel
Save