##### create translation templates ##############

tde_l10n_create_template( "kontact" )

tde_l10n_auto_add_subdirectories( )

file(
    GLOB_RECURSE _desktops
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/*.desktop
)
list( SORT _desktops )

file(
    GLOB_RECURSE _profiles
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/*profile.cfg
)
list( SORT _profiles )

tde_l10n_create_template(
    CATALOG "desktop_files/kontact-desktops/"
    SOURCES_DESKTOP ${_desktops} ${_profiles} src/kontact.setdlg
    DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)