added option to build snore-send and added a missing file
This commit is contained in:
parent
34f9689720
commit
c6ce534297
|
@ -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)
|
||||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue