Changeset View
Changeset View
Standalone View
Standalone View
plugins/sendnotifications/CMakeLists.txt
1 | if (SAILFISHOS) | ||||
---|---|---|---|---|---|
2 | set(SN_PLUGIN_ENABLED_BY_DEFAULT "true") | ||||
3 | else() | ||||
4 | set(SN_PLUGIN_ENABLED_BY_DEFAULT "false") | ||||
5 | endif() | ||||
6 | | ||||
7 | configure_file(kdeconnect_sendnotifications.json.in kdeconnect_sendnotifications.json) | ||||
8 | | ||||
1 | set(kdeconnect_sendnotifications_SRCS | 9 | set(kdeconnect_sendnotifications_SRCS | ||
2 | sendnotificationsplugin.cpp | 10 | sendnotificationsplugin.cpp | ||
3 | notificationslistener.cpp | 11 | notificationslistener.cpp | ||
4 | notifyingapplication.cpp | 12 | notifyingapplication.cpp | ||
13 | kdeconnect_sendnotifications.json | ||||
5 | ) | 14 | ) | ||
6 | 15 | | |||
7 | kdeconnect_add_plugin(kdeconnect_sendnotifications JSON kdeconnect_sendnotifications.json SOURCES ${kdeconnect_sendnotifications_SRCS}) | 16 | kdeconnect_add_plugin(kdeconnect_sendnotifications JSON "${CMAKE_CURRENT_BINARY_DIR}/kdeconnect_sendnotifications.json" SOURCES ${kdeconnect_sendnotifications_SRCS}) | ||
8 | 17 | | |||
9 | target_link_libraries(kdeconnect_sendnotifications | 18 | target_link_libraries(kdeconnect_sendnotifications | ||
10 | kdeconnectcore | 19 | kdeconnectcore | ||
11 | Qt5::DBus | 20 | Qt5::DBus | ||
12 | KF5::Notifications | 21 | ${NOTIFICATION_LIB} | ||
13 | KF5::I18n | 22 | KF5::I18n | ||
23 | Qt5::Gui | ||||
14 | KF5::IconThemes | 24 | KF5::IconThemes | ||
15 | KF5::ConfigCore | 25 | KF5::ConfigCore | ||
16 | ) | 26 | ) | ||
17 | 27 | | |||
18 | ####################################### | 28 | ####################################### | ||
19 | # Config | 29 | # Config | ||
20 | 30 | if (NOT SAILFISHOS) | |||
21 | set( kdeconnect_sendnotifications_config_SRCS | 31 | set( kdeconnect_sendnotifications_config_SRCS | ||
22 | sendnotifications_config.cpp | 32 | sendnotifications_config.cpp | ||
23 | notifyingapplication.cpp | 33 | notifyingapplication.cpp | ||
24 | notifyingapplicationmodel.cpp | 34 | notifyingapplicationmodel.cpp | ||
25 | ) | 35 | ) | ||
26 | ki18n_wrap_ui( kdeconnect_sendnotifications_config_SRCS sendnotifications_config.ui ) | 36 | ki18n_wrap_ui( kdeconnect_sendnotifications_config_SRCS sendnotifications_config.ui ) | ||
27 | 37 | | |||
28 | add_library(kdeconnect_sendnotifications_config MODULE ${kdeconnect_sendnotifications_config_SRCS} ) | 38 | add_library(kdeconnect_sendnotifications_config MODULE ${kdeconnect_sendnotifications_config_SRCS} ) | ||
29 | target_link_libraries( kdeconnect_sendnotifications_config | 39 | target_link_libraries( kdeconnect_sendnotifications_config | ||
30 | kdeconnectcore | 40 | kdeconnectcore | ||
31 | kdeconnectpluginkcm | 41 | kdeconnectpluginkcm | ||
32 | KF5::I18n | 42 | KF5::I18n | ||
33 | KF5::KCMUtils | 43 | KF5::KCMUtils | ||
34 | ) | 44 | ) | ||
35 | 45 | | |||
36 | install( TARGETS kdeconnect_sendnotifications_config DESTINATION ${PLUGIN_INSTALL_DIR} ) | 46 | install( TARGETS kdeconnect_sendnotifications_config DESTINATION ${PLUGIN_INSTALL_DIR} ) | ||
37 | install( FILES kdeconnect_sendnotifications_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 47 | install( FILES kdeconnect_sendnotifications_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
48 | endif() |