2020-05-26 17:55:47 +01:00
|
|
|
set(debug_file_SRCS)
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER plugin_notification_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_PLUGIN_NOTIFICATION CATEGORY_NAME kdeconnect.plugin.notification
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin notification)")
|
|
|
|
|
2013-08-13 23:09:46 +01:00
|
|
|
set(kdeconnect_notifications_SRCS
|
2013-08-20 12:53:36 +01:00
|
|
|
notification.cpp
|
2013-08-13 23:09:46 +01:00
|
|
|
notificationsplugin.cpp
|
2017-05-31 14:33:21 +01:00
|
|
|
sendreplydialog.cpp
|
2020-05-26 17:55:47 +01:00
|
|
|
${debug_file_SRCS}
|
2013-08-13 23:09:46 +01:00
|
|
|
)
|
|
|
|
|
2017-08-03 16:23:12 +01:00
|
|
|
ki18n_wrap_ui(kdeconnect_notifications_SRCS sendreplydialog.ui)
|
|
|
|
|
2021-06-28 19:33:52 +01:00
|
|
|
kdeconnect_add_plugin(kdeconnect_notifications SOURCES ${kdeconnect_notifications_SRCS})
|
2013-08-13 23:09:46 +01:00
|
|
|
|
2014-09-22 09:17:44 +01:00
|
|
|
target_link_libraries(kdeconnect_notifications
|
|
|
|
kdeconnectcore
|
2022-10-29 15:51:41 +01:00
|
|
|
Qt::DBus
|
2023-04-15 11:57:52 +01:00
|
|
|
KF${QT_MAJOR_VERSION}::Notifications
|
|
|
|
KF${QT_MAJOR_VERSION}::I18n
|
|
|
|
KF${QT_MAJOR_VERSION}::WindowSystem
|
2014-09-22 09:17:44 +01:00
|
|
|
)
|
2021-02-01 13:10:47 +00:00
|
|
|
|
2023-04-16 08:57:30 +01:00
|
|
|
if (UNIX AND NOT APPLE)
|
|
|
|
if (QT_MAJOR_VERSION EQUAL "5")
|
|
|
|
target_link_libraries(kdeconnect_notifications Qt5::X11Extras)
|
|
|
|
else()
|
|
|
|
target_link_libraries(kdeconnect_notifications Qt6::GuiPrivate)
|
|
|
|
endif()
|
2021-02-01 13:10:47 +00:00
|
|
|
endif()
|