added service installation

This commit is contained in:
Patrick von Reth 2010-10-29 19:56:01 +02:00
parent 9b02ba082f
commit 6125a63eb7
5 changed files with 15 additions and 4 deletions

View File

@ -14,8 +14,8 @@ set( GROWL_SEND_SRC
add_library( growl STATIC ${GROWL_SEND_SRC} )
add_library( growl++ STATIC gntp-send/source/growl++.cpp)
target_link_libraries ( growl++ growl)
add_library( growl_cpp STATIC gntp-send/source/growl++.cpp)
target_link_libraries ( growl_cpp growl)
endif(WITH_GROWL_BACKEND)

View File

@ -54,4 +54,3 @@ add_subdirectory(data)
add_subdirectory(3party)
add_subdirectory(src)
install(FILES share/FindLibsnore.cmake DESTINATION share/apps/cmake/modules)

9
share/CMakeLists.txt Normal file
View File

@ -0,0 +1,9 @@
set(SNORE_LOCATION ${CMAKE_INSTALL_PREFIX}/bin/snorenotify)
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/)
install(FILES share/FindLibsnore.cmake DESTINATION share/apps/cmake/modules)

View File

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=@SNORE_LOCATION@

View File

@ -7,7 +7,7 @@ if( WITH_GROWL_BACKEND )
)
automoc4_add_library(growl_backend MODULE ${GROWL__SRC} )
target_link_libraries(growl_backend snorecore ${QT_QTCORE_LIBRARY} ${GROWL_CPP} growl++ )
target_link_libraries(growl_backend snorecore ${QT_QTCORE_LIBRARY} ${GROWL_CPP} growl_cpp )
set_target_properties( growl_backend PROPERTIES COMPILE_FLAGS "-DGROWL_CPP_STATIC -DGROWL_STATIC" )
install(TARGETS growl_backend ${PLUGIN_INSTALL_PATH})