Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/27/head
Slávek Banko 4 years ago
parent 4421872bb2
commit 2a2437b302
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -25,12 +25,10 @@ link_directories(
tde_install_icons( kcoloredit kcolorchooser )
foreach( _desktop kcoloredit.desktop kcolorchooser.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kcoloredit-desktops
tde_create_translated_desktop(
SOURCE kcoloredit.desktop kcolorchooser.desktop
PO_DIR kcoloredit-desktops
)
endforeach()
install( FILES
kcoloreditui.rc

@ -30,13 +30,13 @@ link_directories(
tde_create_translated_desktop(
SOURCE kdvi.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops
PO_DIR kdvi-desktops
)
tde_create_translated_desktop(
SOURCE kdvimultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kdvi-desktops
PO_DIR kdvi-desktops
)
install( FILES

@ -33,18 +33,16 @@ tde_install_icons( kfaxview )
tde_create_translated_desktop(
SOURCE kfaxview.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfaxview-desktops
PO_DIR kfaxview-desktops
)
install( FILES ${CMAKE_SOURCE_DIR}/kviewshell/kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kfaxview/kviewshell.rc )
foreach( _desktop kfaxmultipage.desktop kfaxmultipage_tiff.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfaxview-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE kfaxmultipage.desktop kfaxmultipage_tiff.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR kfaxview-desktops
)
#### kfaxviewpart (module) ######################

@ -31,13 +31,13 @@ tde_install_icons( kghostview )
tde_create_translated_desktop(
SOURCE kghostview.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
PO_DIR kghostview-desktops
)
tde_create_translated_desktop(
SOURCE kghostview_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kghostview-desktops
PO_DIR kghostview-desktops
)
install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview )

@ -33,19 +33,19 @@ install( FILES mrml.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
tde_create_translated_desktop(
SOURCE mrml_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
PO_DIR kmrml-desktops
)
tde_create_translated_desktop(
SOURCE mrml.desktop
DESTINATION ${MIME_INSTALL_DIR}/text
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
PO_DIR kmrml-desktops
)
tde_create_translated_desktop(
SOURCE mrml-servicemenu.desktop
DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
PO_DIR kmrml-desktops
)

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kcmkmrml.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
PO_DIR kmrml-desktops
)

@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE daemonwatcher.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kded
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmrml-desktops
PO_DIR kmrml-desktops
)

@ -37,7 +37,7 @@ tde_install_icons( kpdf )
tde_create_translated_desktop(
SOURCE kpdf_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops
PO_DIR kpdf-desktops
)
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/kpdfpart )

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kpdf.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kpdf-desktops
PO_DIR kpdf-desktops
)
install( FILES shell.rc DESTINATION ${DATA_INSTALL_DIR}/kpdf )

@ -30,7 +30,7 @@ tde_create_translated_desktop( kruler.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kruler
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kruler-eventsrc
PO_DIR kruler-eventsrc
)
install( FILES move.wav DESTINATION ${DATA_INSTALL_DIR}/kruler/sounds )

@ -38,7 +38,7 @@ install( FILES
tde_create_translated_desktop(
SOURCE ksvgrenderer.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
PO_DIR ksvg-desktops
)

@ -40,13 +40,11 @@ install( FILES
##### other data ################################
foreach( _service ksvgplugin.desktop svgthumbnail.desktop )
tde_create_translated_desktop(
SOURCE ${_service}
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE ksvgplugin.desktop svgthumbnail.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ksvg-desktops
)
install( FILES
ksvgplugin.rc

@ -37,7 +37,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE ksvglibartcanvas.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksvg-desktops
PO_DIR ksvg-desktops
)

@ -34,7 +34,7 @@ tde_install_icons( kview )
tde_create_translated_desktop(
SOURCE kview.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install( FILES kviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kview )

@ -27,7 +27,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewgeneralconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install( FILES kview.setdlg DESTINATION ${DATA_INSTALL_DIR}/kview )

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpluginsconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)

@ -22,13 +22,11 @@ link_directories(
##### other data ################################
foreach( _service kimageviewercanvas.desktop kimageviewer.desktop )
tde_create_translated_desktop(
SOURCE ${_service}
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
)
endforeach()
tde_create_translated_desktop(
SOURCE kimageviewercanvas.desktop kimageviewer.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR kview-desktops
)
##### kimageviewer (shared) #####################

@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewcanvas.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewcanvasconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)

@ -28,7 +28,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewviewer.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install( FILES kviewviewer.rc kviewviewer_ro.rc kviewpopup.rc DESTINATION ${DATA_INSTALL_DIR}/kviewviewer )

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewviewerpluginsconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)

@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewbrowser.desktop
DESTINATION ${DATA_INSTALL_DIR}/kviewviewer/kpartplugins
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install(

@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kvieweffects.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install(

@ -29,7 +29,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpresenter.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install(

@ -25,7 +25,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewpresenterconfig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)

@ -26,7 +26,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE kviewscanner.desktop
DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install(

@ -27,7 +27,7 @@ tde_install_icons( photobook )
tde_create_translated_desktop(
SOURCE photobook.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kview-desktops
PO_DIR kview-desktops
)
install( FILES photobookui.rc DESTINATION ${DATA_INSTALL_DIR}/photobook )

@ -68,13 +68,13 @@ if ( BUILD_KVIEWSHELL )
tde_create_translated_desktop(
SOURCE tdemultipage.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
PO_DIR kviewshell-desktops
)
tde_create_translated_desktop(
SOURCE emptymultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
PO_DIR kviewshell-desktops
)
install( FILES kviewshell.kcfg DESTINATION ${KCFG_INSTALL_DIR} )

@ -31,7 +31,7 @@ link_directories(
tde_create_translated_desktop(
SOURCE djvumultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kviewshell-desktops
PO_DIR kviewshell-desktops
)
install( FILES djvumultipage.kcfg DESTINATION ${KCFG_INSTALL_DIR} )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save