Make it possible to disable the installation as a dbus service.

This commit is contained in:
Patrick von Reth 2015-08-21 17:48:20 +02:00
parent da5ce322c5
commit 5aac4dc578
1 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@ set_package_properties(Qt5DBus PROPERTIES
PURPOSE "Support for the Freedesktop Notification Frontend." PURPOSE "Support for the Freedesktop Notification Frontend."
TYPE OPTIONAL) 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) if(Qt5DBus_FOUND)
message(STATUS "Adding freedesktop notification frontend") message(STATUS "Adding freedesktop notification frontend")
@ -18,7 +24,7 @@ if(Qt5DBus_FOUND)
#install the dbus interface #install the dbus interface
if(BUILD_daemon) if(INSTALL_FREEDESKTOP_NOTIFICATION_SERVICE)
if(WIN32) if(WIN32)
set(SNORE_LOCATION ../bin/snorenotify) set(SNORE_LOCATION ../bin/snorenotify)
else() else()