Browse Source

Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 2 years ago
parent
commit
bf6e319e3d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 1
      fileplugin/CMakeLists.txt
  2. 11
      kbarcode/CMakeLists.txt

1
fileplugin/CMakeLists.txt

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

11
kbarcode/CMakeLists.txt

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

Loading…
Cancel
Save