22be63ae9e
In theory we support Qt 5.6 (because of SailfishOS) but in practice we are not checking that in the CI so probably we broke the compatibility long ago. Also, I don't think anyone is using this code in SailfishOS, so we can greatly simplify the code by requiring Qt 5.15 or later.
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
|
|
set(debug_file_SRCS)
|
|
ecm_qt_declare_logging_category(
|
|
debug_file_SRCS HEADER plugin_sendnotification_debug.h
|
|
IDENTIFIER KDECONNECT_PLUGIN_SENDNOTIFICATION CATEGORY_NAME kdeconnect.plugin.sendnotification
|
|
DEFAULT_SEVERITY Warning
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sendnotification)")
|
|
|
|
set(kdeconnect_sendnotifications_SRCS
|
|
sendnotificationsplugin.cpp
|
|
notificationslistener.cpp
|
|
notifyingapplication.cpp
|
|
${debug_file_SRCS}
|
|
)
|
|
|
|
kdeconnect_add_plugin(kdeconnect_sendnotifications SOURCES ${kdeconnect_sendnotifications_SRCS})
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications
|
|
kdeconnectcore
|
|
Qt::DBus
|
|
KF5::I18n
|
|
Qt::Gui
|
|
KF5::IconThemes
|
|
KF5::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
|
|
KF5::I18n
|
|
KF5::KCMUtils
|
|
)
|