CMakeLists.txt 880 Bytes
Newer Older
1
2
3
4
5
6
7
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)")

8
set(kdeconnect_notifications_SRCS
9
    notification.cpp
10
    notificationsplugin.cpp
11
    sendreplydialog.cpp
12
    ${debug_file_SRCS}
13
14
)

15
16
ki18n_wrap_ui(kdeconnect_notifications_SRCS sendreplydialog.ui)

17
kdeconnect_add_plugin(kdeconnect_notifications JSON kdeconnect_notifications.json SOURCES ${kdeconnect_notifications_SRCS})
18

19
20
21
22
target_link_libraries(kdeconnect_notifications
    kdeconnectcore
    Qt5::DBus
    KF5::Notifications
23
    KF5::I18n
24
    KF5::WindowSystem
25
)
26
27
28
29
30
31

if (UNIX AND NOT APPLE)
    target_link_libraries(kdeconnect_notifications
        Qt::X11Extras
    )
endif()