f740a8bda8
This makes it easier to read, because we do not have to handle a list of files that get added to the targets. In other KDE projects, we also prefer the target centric approach. In case one wants to reuse the same category in multiple places, it would be best to create a small static lib. But for now, this is not needed.
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
|
|
kdeconnect_add_plugin(kdeconnect_sendnotifications)
|
|
|
|
target_sources(kdeconnect_sendnotifications PRIVATE
|
|
sendnotificationsplugin.cpp
|
|
notificationslistener.cpp
|
|
notifyingapplication.cpp
|
|
)
|
|
ecm_qt_declare_logging_category(kdeconnect_sendnotifications
|
|
HEADER plugin_sendnotification_debug.h
|
|
IDENTIFIER KDECONNECT_PLUGIN_SENDNOTIFICATION CATEGORY_NAME kdeconnect.plugin.sendnotification
|
|
DEFAULT_SEVERITY Warning
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sendnotification)")
|
|
target_link_libraries(kdeconnect_sendnotifications
|
|
kdeconnectcore
|
|
Qt::DBus
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
Qt::Gui
|
|
KF${QT_MAJOR_VERSION}::IconThemes
|
|
KF${QT_MAJOR_VERSION}::ConfigCore
|
|
PkgConfig::GIO
|
|
)
|
|
|
|
# Config
|
|
kcoreaddons_add_plugin(kdeconnect_sendnotifications_config INSTALL_NAMESPACE "kdeconnect/kcms")
|
|
|
|
ki18n_wrap_ui(kdeconnect_sendnotifications_config sendnotifications_config.ui)
|
|
target_sources(kdeconnect_sendnotifications_config PRIVATE
|
|
sendnotifications_config.cpp
|
|
notifyingapplication.cpp
|
|
notifyingapplicationmodel.cpp
|
|
)
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications_config
|
|
kdeconnectcore
|
|
kdeconnectpluginkcm
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
KF${QT_MAJOR_VERSION}::KCMUtils
|
|
)
|