### configuration plugin
add_definitions(-DTRANSLATION_DOMAIN=\"velora_style_config\")
set(kstyle_velora_config_PART_SRCS velorastyleconfig.cpp)

set(kstyle_velora_config_PART_SRCS ${kstyle_velora_config_PART_SRCS} velorastyleconfigmodule.cpp)

kconfig_add_kcfg_files(kstyle_velora_config_PART_SRCS ../velorastyleconfigdata.kcfgc)
set(kstyle_velora_config_PART_FORMS ui/velorastyleconfig.ui)
ki18n_wrap_ui(kstyle_velora_config_PART_FORMS_HEADERS ${kstyle_velora_config_PART_FORMS})

kcoreaddons_add_plugin(velorastyleconfig SOURCES
    ${kstyle_velora_config_PART_SRCS}
    ${kstyle_velora_config_PART_FORMS_HEADERS}
    INSTALL_NAMESPACE "kstyle_config"
)

target_link_libraries(velorastyleconfig Qt6::Core Qt6::Gui Qt6::Widgets Qt6::DBus)
target_link_libraries(velorastyleconfig KF6::CoreAddons KF6::ConfigCore KF6::ConfigWidgets KF6::I18n)
if(QT_MAJOR_VERSION STREQUAL "6")
    target_link_libraries(velorastyleconfig KF6::KCMUtils)
endif()
kcmutils_generate_desktop_file(velorastyleconfig)

set(velora_settings_SOURCES main.cpp)
add_executable(velora-settings ${velora_settings_SOURCES} )
target_link_libraries(velora-settings Qt6::Core Qt6::Gui Qt6::Widgets )
target_link_libraries(velora-settings KF6::I18n KF6::KCMUtils KF6::CoreAddons)

set_target_properties(velora-settings PROPERTIES OUTPUT_NAME velora-settings${QT_MAJOR_VERSION})

install(TARGETS velora-settings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})

# icon
ecm_install_icons(ICONS sc-apps-velora-settings.svgz
    DESTINATION ${KDE_INSTALL_ICONDIR}
    THEME hicolor )


