Commit 14b564a6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcm] Use kcoreaddons_add_plugin

parent fe9a2d64
Pipeline #215354 passed with stage
in 2 minutes and 26 seconds
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kscreen\")
set(kcm_kscreen_SRCS
kcoreaddons_add_plugin(kcm_kscreen INSTALL_NAMESPACE "plasma/kcms/systemsettings")
target_sources(kcm_kscreen PRIVATE
config_handler.cpp
kcm.cpp
output_model.cpp
......@@ -10,7 +12,7 @@ set(kcm_kscreen_SRCS
${CMAKE_SOURCE_DIR}/common/orientation_sensor.cpp
)
ecm_qt_declare_logging_category(kcm_kscreen_SRCS
ecm_qt_declare_logging_category(kcm_kscreen
HEADER
kcm_screen_debug.h
IDENTIFIER
......@@ -20,8 +22,6 @@ ecm_qt_declare_logging_category(kcm_kscreen_SRCS
DESCRIPTION "kscreen kcm (kscreen)" EXPORT KSCREEN
)
add_library(kcm_kscreen MODULE ${kcm_kscreen_SRCS})
kconfig_add_kcfg_files(kcm_kscreen GENERATE_MOC globalscalesettings.kcfgc)
kcmutils_generate_desktop_file(kcm_kscreen)
......@@ -38,6 +38,4 @@ target_link_libraries(kcm_kscreen
KF5::Screen
)
install(TARGETS kcm_kscreen DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/kcms/systemsettings)
kpackage_install_package(package kcm_kscreen kcms)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment