Changeset View
Changeset View
Standalone View
Standalone View
dataengines/notifications/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"plasma_engine_notifications\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"plasma_engine_notifications\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | set(notifications_engine_SRCS | 3 | set(notifications_engine_SRCS | ||
4 | notificationsengine.cpp | 4 | notificationsengine.cpp | ||
5 | notificationservice.cpp | 5 | notificationservice.cpp | ||
6 | notificationaction.cpp | 6 | notificationaction.cpp | ||
7 | notificationsanitizer.cpp | ||||
7 | ) | 8 | ) | ||
8 | 9 | | |||
9 | qt5_add_dbus_adaptor( notifications_engine_SRCS org.freedesktop.Notifications.xml notificationsengine.h NotificationsEngine ) | 10 | qt5_add_dbus_adaptor( notifications_engine_SRCS org.freedesktop.Notifications.xml notificationsengine.h NotificationsEngine ) | ||
10 | 11 | | |||
11 | add_library(plasma_engine_notifications MODULE ${notifications_engine_SRCS}) | 12 | add_library(plasma_engine_notifications MODULE ${notifications_engine_SRCS}) | ||
12 | 13 | | |||
13 | target_link_libraries(plasma_engine_notifications | 14 | target_link_libraries(plasma_engine_notifications | ||
14 | Qt5::DBus | 15 | Qt5::DBus | ||
15 | KF5::I18n | 16 | KF5::I18n | ||
16 | KF5::IconThemes | 17 | KF5::IconThemes | ||
17 | KF5::KIOCore | 18 | KF5::KIOCore | ||
18 | KF5::Notifications | 19 | KF5::Notifications | ||
19 | KF5::Plasma | 20 | KF5::Plasma | ||
20 | KF5::Service | 21 | KF5::Service | ||
21 | KF5::NotifyConfig | 22 | KF5::NotifyConfig | ||
22 | ) | 23 | ) | ||
23 | 24 | | |||
24 | kcoreaddons_desktop_to_json(plasma_engine_notifications plasma-dataengine-notifications.desktop) | 25 | kcoreaddons_desktop_to_json(plasma_engine_notifications plasma-dataengine-notifications.desktop) | ||
25 | 26 | | |||
26 | install(TARGETS plasma_engine_notifications DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine) | 27 | install(TARGETS plasma_engine_notifications DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine) | ||
27 | install(FILES plasma-dataengine-notifications.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | 28 | install(FILES plasma-dataengine-notifications.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | ||
28 | install(FILES notifications.operations DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services) | 29 | install(FILES notifications.operations DESTINATION ${PLASMA_DATA_INSTALL_DIR}/services) | ||
30 | | ||||
31 | | ||||
32 | #unit test | ||||
33 | | ||||
34 | add_executable(notification_test notificationsanitizer.cpp notifications_test.cpp) | ||||
35 | target_link_libraries(notification_test Qt5::Test Qt5::Core) | ||||
36 | ecm_mark_as_test(notification_test) |