Simplify CMake rules for desktop file translations.

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

@ -3,34 +3,34 @@
tde_create_translated_desktop(
SOURCE languages.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Languages
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories
PO_DIR applnk-directories
OUTPUT_NAME .directory
)
tde_create_translated_desktop(
SOURCE mathematics.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Mathematics
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories
PO_DIR applnk-directories
OUTPUT_NAME .directory
)
tde_create_translated_desktop(
SOURCE science.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Science
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories
PO_DIR applnk-directories
OUTPUT_NAME .directory
)
tde_create_translated_desktop(
SOURCE tools.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Tools
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories
PO_DIR applnk-directories
OUTPUT_NAME .directory
)
tde_create_translated_desktop(
SOURCE miscellaneous.desktop
DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Miscellaneous
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories
PO_DIR applnk-directories
OUTPUT_NAME .directory
)

@ -71,5 +71,5 @@ install(
tde_create_translated_desktop(
SOURCE keduca_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-desktops
PO_DIR keduca-desktops
)

@ -9,17 +9,13 @@ tde_install_icons( )
##### other data
foreach( _mimetype x-edu.desktop x-edugallery.desktop )
tde_create_translated_desktop(
SOURCE ${_mimetype}
SOURCE x-edu.desktop x-edugallery.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-mimetypes
PO_DIR keduca-mimetypes
)
endforeach()
foreach( _desktop keduca.desktop keducabuilder.desktop )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/keduca-desktops
SOURCE keduca.desktop keducabuilder.desktop
PO_DIR keduca-desktops
)
endforeach()

@ -58,11 +58,11 @@ install(
tde_create_translated_desktop(
SOURCE kig.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops
PO_DIR kig-desktops
)
tde_create_translated_desktop(
SOURCE kig_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-desktops
PO_DIR kig-desktops
)

@ -23,16 +23,13 @@ install(
DESTINATION ${CONFIG_INSTALL_DIR}/magic
)
foreach( _mimetype
tde_create_translated_desktop(
SOURCE
x-kig.desktop
x-kgeo.desktop
x-kseg.desktop
x-cabri.desktop
x-drgeo.desktop
)
tde_create_translated_desktop(
SOURCE ${_mimetype}
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-mimetypes
PO_DIR kig-mimetypes
)
endforeach()

@ -44,10 +44,8 @@ tde_add_kpart( tdefile_kig AUTOMOC
##### other data
foreach( _tdefile tdefile_drgeo.desktop tdefile_kig.desktop )
tde_create_translated_desktop(
SOURCE ${_tdefile}
SOURCE tdefile_drgeo.desktop tdefile_kig.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-tdefile
PO_DIR kig-tdefile
)
endforeach()

@ -108,18 +108,18 @@ install(
tde_create_translated_desktop(
SOURCE x-kmplot.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops
PO_DIR kmplot-desktops
)
tde_create_translated_desktop(
SOURCE kmplot.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops
PO_DIR kmplot-desktops
)
tde_create_translated_desktop(
SOURCE kmplot_part.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmplot-desktops
PO_DIR kmplot-desktops
)
install(

@ -87,7 +87,7 @@ tde_add_executable( spotlight2kvtml AUTOMOC
tde_create_translated_desktop(
SOURCE x-kvtml.desktop
DESTINATION ${MIME_INSTALL_DIR}/text
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kvoctrain-desktops
PO_DIR kvoctrain-desktops
)
install(
@ -97,7 +97,7 @@ install(
tde_create_translated_desktop(
SOURCE kvoctrain.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kvoctrain-desktops
PO_DIR kvoctrain-desktops
)
install(

@ -80,18 +80,18 @@ install(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kwordquiz
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-events
PO_DIR kwordquiz-events
)
tde_create_translated_desktop(
SOURCE kwordquiz.desktop
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops
PO_DIR kwordquiz-desktops
)
tde_create_translated_desktop(
SOURCE x-kwordquiz.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops
PO_DIR kwordquiz-desktops
)
install(

Loading…
Cancel
Save