Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/12/head
Slávek Banko 4 years ago
parent 2098ac13de
commit 1e91884c7c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,7 +20,7 @@ foreach (theme ${ICON_THEMES})
tde_create_translated_desktop(
SOURCE ${theme}/index.theme
DESTINATION ${ICON_INSTALL_DIR}/${theme}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/icon-themes
PO_DIR icon-themes
)
foreach(size ${ICON_SIZES})
foreach(type ${ICON_TYPES})

@ -29,7 +29,7 @@ foreach( _theme IN LISTS _themes )
tde_create_translated_desktop(
SOURCE ${_theme}/${_theme}.desktop
DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}"
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes
PO_DIR kworldclock-themes
)
endif()
endforeach()

@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE dotnet.themerc
DESTINATION ${DATA_INSTALL_DIR}/tdestyle/themes
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/style-themes
PO_DIR style-themes
)

@ -31,7 +31,7 @@ add_subdirectory( config )
tde_create_translated_desktop(
SOURCE phase.themerc
DESTINATION ${DATA_INSTALL_DIR}/tdestyle/themes
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/style-themes
PO_DIR style-themes
)
##### phasestyle #################################

@ -135,7 +135,7 @@ foreach( saver ${SCREENSAVERS} )
tde_create_translated_desktop(
SOURCE ${${saver}_DESKTOP}
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
PO_DIR tdescreensaver-desktops
)
endforeach( saver ${SCREENSAVERS} )

@ -60,7 +60,7 @@ foreach(_currentdesktopfile ${_desktopfiles})
tde_create_translated_desktop(
SOURCE ${_currentdesktopfile}
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
PO_DIR tdescreensaver-desktops
)
else(XSCREENSAVER_FILE_FOUND)
MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found")

@ -24,7 +24,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE tdepartsaver.desktop
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
PO_DIR tdescreensaver-desktops
)
##### kpart_cde ##################################

@ -36,7 +36,7 @@ tde_add_executable( kswarm.kss AUTOMOC
tde_create_translated_desktop(
SOURCE KSwarm.desktop
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
PO_DIR tdescreensaver-desktops
)
##### kswarm #################################
@ -53,6 +53,6 @@ if( WITH_OPENGL )
tde_create_translated_desktop(
SOURCE KSpace.desktop
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
PO_DIR tdescreensaver-desktops
)
endif( WITH_OPENGL )

@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE cde.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE glow.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE icewm.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -24,7 +24,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kde1.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -24,7 +24,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kstep.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE openlook.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -29,7 +29,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE riscos.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -30,7 +30,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE smoothblend.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -24,7 +24,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE system.desktop
DESTINATION ${DATA_INSTALL_DIR}/twin
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/twin-styles-desktops
PO_DIR twin-styles-desktops
)

@ -24,7 +24,7 @@ foreach( _wallpaper IN LISTS _wallpapers )
tde_create_translated_desktop(
SOURCE ${_wallpaper}.desktop
DESTINATION ${WALLPAPER_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/wallpapers-desktops
PO_DIR wallpapers-desktops
)
endif()
endforeach()

Loading…
Cancel
Save