Document some of the cmake options.
This commit is contained in:
parent
5aac4dc578
commit
eb4594c0a8
|
@ -1,5 +1,11 @@
|
|||
add_subdirectory(libsnore)
|
||||
ecm_optional_add_subdirectory(daemon)
|
||||
add_feature_info(BUILD_daemon BUILD_daemon "Build and installd the snorenotify daemon which recieves and redirects notifications.")
|
||||
|
||||
ecm_optional_add_subdirectory(settings)
|
||||
add_feature_info(BUILD_settings BUILD_settings "Build and installd the snorensettings application which allows the modification of the settings for all applications using libsnore.")
|
||||
|
||||
ecm_optional_add_subdirectory(snoresend)
|
||||
add_feature_info(BUILD_snoresend BUILD_snoresend "Build and installd the snoresend application, a commandline interface for sendig notifications.")
|
||||
|
||||
add_subdirectory(plugins)
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
ecm_optional_add_subdirectory(backends)
|
||||
ecm_optional_add_subdirectory(frontends)
|
||||
add_feature_info(BUILD_backends BUILD_backends "Build and installd the backends, which are used to display interactive notifications.")
|
||||
|
||||
ecm_optional_add_subdirectory(secondary_backends)
|
||||
add_feature_info(BUILD_secondary_backends BUILD_secondary_backends "Build and installd the secondary_backends, which are used to display non interactive notifications.")
|
||||
|
||||
ecm_optional_add_subdirectory(frontends)
|
||||
add_feature_info(BUILD_frontends BUILD_frontends "Build and installd the frontends, which are used to recieve notifications.")
|
||||
|
||||
ecm_optional_add_subdirectory(plugins)
|
||||
|
|
|
@ -2,16 +2,10 @@ find_package(Qt5DBus QUIET)
|
|||
set_package_properties(Qt5DBus PROPERTIES
|
||||
PURPOSE "Support for the Freedesktop Notification Frontend."
|
||||
TYPE OPTIONAL)
|
||||
|
||||
option(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE "Install snorenotify as a dbus service for recieving Notifications." OFF)
|
||||
if(WIN32 OR APPLE)
|
||||
set(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE ON)
|
||||
endif()
|
||||
add_feature_info(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE "Install snorenotify as a dbus service for recieving Notifications.")
|
||||
|
||||
if(Qt5DBus_FOUND)
|
||||
message(STATUS "Adding freedesktop notification frontend")
|
||||
|
||||
|
||||
set( FREEDESKTOP_NOTIFICATION_FRONTEND_SRC
|
||||
freedesktopnotificationfrontend.cpp
|
||||
../../backends/freedesktop_backend/fredesktopnotification.cpp
|
||||
|
@ -24,16 +18,24 @@ if(Qt5DBus_FOUND)
|
|||
|
||||
|
||||
#install the dbus interface
|
||||
if(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE)
|
||||
if(WIN32)
|
||||
set(SNORE_LOCATION ../bin/snorenotify)
|
||||
else()
|
||||
set(SNORE_LOCATION ${CMAKE_INSTALL_PREFIX}/bin/snorenotify)
|
||||
if(BUILD_daemon)
|
||||
option(INSTALL_freedesktop_notification_service "Install snorenotify as a dbus service for recieving Notifications." OFF)
|
||||
if(WIN32 OR APPLE)
|
||||
set(INSTALL_freedesktop_notification_service ON)
|
||||
endif()
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Notifications.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service)
|
||||
add_feature_info(INSTALL_freedesktop_notification_service INSTALL_freedesktop_notification_service "Install snorenotify as a dbus service for recieving Notifications.")
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service
|
||||
DESTINATION share/dbus-1/services/)
|
||||
if(INSTALL_freedesktop_notification_service)
|
||||
if(WIN32)
|
||||
set(SNORE_LOCATION ../bin/snorenotify)
|
||||
else()
|
||||
set(SNORE_LOCATION ${CMAKE_INSTALL_PREFIX}/bin/snorenotify)
|
||||
endif()
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Notifications.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service
|
||||
DESTINATION share/dbus-1/services/)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
install(TARGETS libsnore_frontend_freedesktop ${SNORE_PLUGIN_INSTALL_PATH})
|
||||
|
|
Loading…
Reference in New Issue