Changeset View
Changeset View
Standalone View
Standalone View
notifier/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"plasma-discover-notifier\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"plasma-discover-notifier\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | add_library(DiscoverNotifierDeclarativePlugin BackendNotifierFactory.cpp DiscoverNotifier.cpp DiscoverNotifierDeclarativePlugin.cpp) | 3 | add_executable(DiscoverNotifier BackendNotifierFactory.cpp DiscoverNotifier.cpp main.cpp) | ||
4 | target_link_libraries(DiscoverNotifierDeclarativePlugin | 4 | target_link_libraries(DiscoverNotifier | ||
5 | KF5::Notifications | 5 | KF5::Notifications | ||
6 | KF5::ConfigCore | | |||
7 | KF5::I18n | 6 | KF5::I18n | ||
8 | KF5::KIOWidgets | 7 | KF5::KIOWidgets | ||
9 | Qt5::Qml | 8 | KF5::Crash | ||
10 | Qt5::DBus | 9 | KF5::DBusAddons | ||
11 | Qt5::Network | | |||
12 | 10 | | |||
13 | Discover::Notifiers | 11 | Discover::Notifiers | ||
14 | ) | 12 | ) | ||
15 | set_target_properties(DiscoverNotifierDeclarativePlugin PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover) | 13 | set_target_properties(DiscoverNotifier PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover) | ||
14 | install(TARGETS DiscoverNotifier DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||||
16 | 15 | | |||
17 | install(TARGETS DiscoverNotifierDeclarativePlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/discovernotifier) | 16 | set(DesktopExec "${KDE_INSTALL_LIBEXECDIR}/DiscoverNotifier") | ||
18 | install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/discovernotifier) | 17 | configure_file(org.kde.discover.notifier.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.discover.notifier.desktop) | ||
19 | 18 | install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.discover.notifier.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) | |||
20 | find_package(KF5Plasma) | 19 | install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.discover.notifier.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) | ||
21 | if(KF5Plasma_FOUND) | | |||
22 | plasma_install_package(plasmoid org.kde.discovernotifier) | | |||
23 | endif() | |