add_definitions(-DTRANSLATION_DOMAIN=\"kcm_style\") kcmutils_add_qml_kcm(kcm_style) qt_add_dbus_interface(kcm_style_DBUS_SRCS ${KDED_DBUS_INTERFACE} kded_interface) qt_add_dbus_interface(kcm_style_DBUS_SRCS org.kde.GtkConfig.xml kdegtkconfig_interface) target_sources(kcm_style PRIVATE ${kcm_style_DBUS_SRCS} ../kcms-common.cpp styleconfdialog.cpp kcmstyle.cpp stylesmodel.cpp gtkthemesmodel.cpp gtkpage.cpp previewitem.cpp styledata.cpp styleconfdialog.h kcmstyle.h stylesmodel.h gtkthemesmodel.h gtkpage.h previewitem.h styledata.h ) kcmutils_generate_module_data(kcm_style MODULE_DATA_HEADER styledata.h MODULE_DATA_CLASS_NAME StyleData SETTINGS_HEADERS stylesettings.h SETTINGS_CLASSES StyleSettings ) ki18n_wrap_ui(kcm_style stylepreview.ui) kconfig_add_kcfg_files(kcm_style stylesettings.kcfgc GENERATE_MOC) ecm_qt_declare_logging_category(kcm_style HEADER kcm_style_debug.h IDENTIFIER KCM_STYLE_DEBUG CATEGORY_NAME org.kde.plasma.kcm_style DESCRIPTION "kcm style" EXPORT PLASMAWORKSPACE ) target_compile_definitions(kcm_style PUBLIC CMAKE_INSTALL_FULL_LIBEXECDIR="${CMAKE_INSTALL_FULL_LIBEXECDIR}") target_link_libraries(kcm_style PRIVATE Qt::Quick KF6::KCMUtils KF6::I18n KF6::KIOCore KF6::KCMUtilsQuick KF6::Archive KF6::NewStuffCore KF6::XmlGui krdb ) install(FILES stylesettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) install(FILES gtk_themes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) add_custom_command(TARGET kcm_style POST_BUILD COMMAND ${CMAKE_COMMAND} -E create_symlink ../kcms/systemsettings/kcm_style.so kcm_style_init.so) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/kcm_style_init.so DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/kcminit)