added option to build snore-send and added a missing file

This commit is contained in:
Patrick von Reth 2014-08-11 23:14:22 +02:00
parent 34f9689720
commit c6ce534297
2 changed files with 18 additions and 0 deletions

View File

@ -15,6 +15,7 @@ include(GenerateExportHeader)
option(WITH_FRONTENDS "Build frontends currently only useful if WITH_SNORE_DEAMON=ON" OFF) option(WITH_FRONTENDS "Build frontends currently only useful if WITH_SNORE_DEAMON=ON" OFF)
option(WITH_GROWL_BACKEND "Build the Growl backend" ON) option(WITH_GROWL_BACKEND "Build the Growl backend" ON)
option(WITH_SNORE_DEAMON "Build the Snore deamon, which redirects notifications" OFF) option(WITH_SNORE_DEAMON "Build the Snore deamon, which redirects notifications" OFF)
option(WITH_SNORE_SEND "An command line interface for snore" OFF)
option(WITH_QT4 "Use Qt4" ON) option(WITH_QT4 "Use Qt4" ON)
option(WITH_KDE "Try to build with KDE support if available" ON) option(WITH_KDE "Try to build with KDE support if available" ON)
option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF) option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF)

View File

@ -0,0 +1,17 @@
if(WITH_SNORE_SEND)
if(NOT WITH_QT4)
message(STATUS "Building snore-send")
add_executable( snore-send main.cpp ${SNORENOTIFY_DEAMON_DEPS})
target_link_libraries( snore-send libsnore Qt5::Core )
if(KDE5_FOUND)
target_link_libraries( snore-send KF5::CoreAddons KF5::I18n)
endif()
install(TARGETS snore-send RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
else()
message(STATUS "Don't build snore-send, as it depends on Qt5")
endif()
endif()