Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/6/head
Slávek Banko 4 years ago
parent a3f22d8e5b
commit 33c97fa091
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -1,11 +1,9 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
foreach( _source ${_files} )
tde_create_translated_desktop(
SOURCE ${_source}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
)
endforeach()
tde_create_translated_desktop(
SOURCE ${_files}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
PO_DIR extras
)
tde_auto_add_subdirectories( )

@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
foreach( _source ${_files} )
tde_create_translated_desktop(
SOURCE ${_source}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
)
endforeach()
tde_create_translated_desktop(
SOURCE ${_files}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
PO_DIR extras
)

@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
foreach( _source ${_files} )
tde_create_translated_desktop(
SOURCE ${_source}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
)
endforeach()
tde_create_translated_desktop(
SOURCE ${_files}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
PO_DIR extras
)

@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
foreach( _source ${_files} )
tde_create_translated_desktop(
SOURCE ${_source}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
)
endforeach()
tde_create_translated_desktop(
SOURCE ${_files}
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
PO_DIR extras
)

@ -32,5 +32,5 @@ tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC
tde_create_translated_desktop(
SOURCE kshutdownlockout.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/${PROJECT_NAME}.desktop
PO_DIR ${PROJECT_NAME}.desktop
)

Loading…
Cancel
Save