Document some of the cmake options.

This commit is contained in:
Patrick von Reth 2015-08-23 13:47:50 +02:00
parent 5aac4dc578
commit eb4594c0a8
3 changed files with 30 additions and 16 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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,7 +18,14 @@ if(Qt5DBus_FOUND)
#install the dbus interface
if(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE)
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()
add_feature_info(INSTALL_freedesktop_notification_service INSTALL_freedesktop_notification_service "Install snorenotify as a dbus service for recieving Notifications.")
if(INSTALL_freedesktop_notification_service)
if(WIN32)
set(SNORE_LOCATION ../bin/snorenotify)
else()
@ -35,6 +36,7 @@ if(Qt5DBus_FOUND)
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})