CMakeLists.txt 1.17 KB
Newer Older
1
find_package(KF5 REQUIRED COMPONENTS Notifications KCMUtils I18n IconThemes)
2

3
set(kdeconnect_notifications_SRCS
4
    notification.cpp
5
    notificationsplugin.cpp
6
    notificationsdbusinterface.cpp
7
    notificationslistener.cpp
8
    notifyingapplication.cpp
9
10
)

11
kdeconnect_add_plugin(kdeconnect_notifications JSON kdeconnect_notifications.json SOURCES ${kdeconnect_notifications_SRCS})
12

13
14
15
16
target_link_libraries(kdeconnect_notifications
    kdeconnectcore
    Qt5::DBus
    KF5::Notifications
17
    KF5::I18n
18
    KF5::IconThemes
19
)
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#######################################
# Config

set( kdeconnect_notifications_config_SRCS
     notifications_config.cpp
     notifyingapplication.cpp
     notifyingapplicationmodel.cpp
)
ki18n_wrap_ui( kdeconnect_notifications_config_SRCS notifications_config.ui )

add_library(kdeconnect_notifications_config MODULE ${kdeconnect_notifications_config_SRCS} )
target_link_libraries( kdeconnect_notifications_config
    kdeconnectcore
    kdeconnectpluginkcm
    KF5::I18n
    KF5::KCMUtils
)

install( TARGETS kdeconnect_notifications_config DESTINATION ${PLUGIN_INSTALL_DIR} )
install( FILES kdeconnect_notifications_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )