Simplify CMake rules for desktop file translations.

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

@ -31,5 +31,4 @@ tde_add_kpart( tdefile_kbarcode AUTOMOC
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE tdefile_kbarcode.desktop SOURCE tdefile_kbarcode.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
) )

@ -70,23 +70,18 @@ tde_install_icons( )
##### other data ##### other data
foreach( _desktop tde_create_translated_desktop(
SOURCE
${PROJECT_NAME}.desktop ${PROJECT_NAME}.desktop
${PROJECT_NAME}-batch.desktop ${PROJECT_NAME}-batch.desktop
${PROJECT_NAME}-editor.desktop ${PROJECT_NAME}-editor.desktop
${PROJECT_NAME}-single.desktop ${PROJECT_NAME}-single.desktop
) )
tde_create_translated_desktop(
SOURCE ${_desktop}
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
)
endforeach( )
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE ${PROJECT_NAME}-label.desktop SOURCE ${PROJECT_NAME}-label.desktop
DESTINATION ${MIME_INSTALL_DIR}/application DESTINATION ${MIME_INSTALL_DIR}/application
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files
) )
install( install(

Loading…
Cancel
Save