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-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::I18n
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::Gui
|
2023-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::IconThemes
|
|
|
|
KF${QT_MAJOR_VERSION}::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)
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications ${DBus_LIBRARIES})
|
2023-08-13 20:43:59 +01:00
|
|
|
target_include_directories(kdeconnect_sendnotifications
|
|
|
|
SYSTEM PRIVATE ${DBus_INCLUDE_DIRS}
|
2016-05-25 19:49:13 +01:00
|
|
|
)
|
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-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
|
|
KF${QT_MAJOR_VERSION}::KCMUtils
|
2016-05-25 19:49:13 +01:00
|
|
|
)
|