Simplify CMake rules for desktop file translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 33c97fa091)
r14.0.x
Slávek Banko 4 years ago
parent b06708f5eb
commit 8e674b278c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

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

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

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

@ -32,5 +32,5 @@ tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC
tde_create_translated_desktop( tde_create_translated_desktop(
SOURCE kshutdownlockout.desktop SOURCE kshutdownlockout.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets 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