2023-07-20 14:31:40 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_sendnotifications)
|
2020-05-26 17:55:47 +01:00
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
target_sources(kdeconnect_sendnotifications PRIVATE
|
2016-05-25 19:49:13 +01:00
|
|
|
sendnotificationsplugin.cpp
|
|
|
|
notificationslistener.cpp
|
|
|
|
notifyingapplication.cpp
|
|
|
|
)
|
2023-07-30 18:05:15 +01:00
|
|
|
|
2016-05-25 19:49:13 +01:00
|
|
|
target_link_libraries(kdeconnect_sendnotifications
|
|
|
|
kdeconnectcore
|
2023-12-28 16:37:31 +00:00
|
|
|
KF6::I18n
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Gui
|
2023-12-28 16:37:31 +00:00
|
|
|
KF6::IconThemes
|
|
|
|
KF6::ConfigCore
|
2023-08-13 20:43:59 +01:00
|
|
|
)
|
|
|
|
|
2023-07-30 18:05:15 +01:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_sources(kdeconnect_sendnotifications PRIVATE windowsnotificationslistener.cpp)
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications runtimeobject windowsapp)
|
|
|
|
else()
|
|
|
|
target_sources(kdeconnect_sendnotifications PRIVATE dbusnotificationslistener.cpp)
|
2024-01-07 10:42:23 +00:00
|
|
|
target_link_libraries(kdeconnect_sendnotifications PkgConfig::DBus)
|
2023-07-30 18:05:15 +01:00
|
|
|
endif()
|
2016-05-25 19:49:13 +01:00
|
|
|
|
|
|
|
# Config
|
2023-08-06 10:46:20 +01:00
|
|
|
kdeconnect_add_kcm(kdeconnect_sendnotifications_config)
|
2021-11-18 10:05:09 +00:00
|
|
|
|
|
|
|
ki18n_wrap_ui(kdeconnect_sendnotifications_config sendnotifications_config.ui)
|
|
|
|
target_sources(kdeconnect_sendnotifications_config PRIVATE
|
2016-05-25 19:49:13 +01:00
|
|
|
sendnotifications_config.cpp
|
|
|
|
notifyingapplication.cpp
|
|
|
|
notifyingapplicationmodel.cpp
|
|
|
|
)
|
|
|
|
|
2023-07-20 14:31:40 +01:00
|
|
|
target_link_libraries(kdeconnect_sendnotifications_config
|
2016-05-25 19:49:13 +01:00
|
|
|
kdeconnectcore
|
|
|
|
kdeconnectpluginkcm
|
2023-12-28 16:37:31 +00:00
|
|
|
KF6::I18n
|
|
|
|
KF6::KCMUtils
|
2016-05-25 19:49:13 +01:00
|
|
|
)
|