fixed installs, added finslibsnore.cmake
This commit is contained in:
parent
cb93ba1fa7
commit
67cae7dca5
|
@ -41,5 +41,9 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
|
|||
|
||||
option(WITH_WEBINTERFACE "Buld with WebInterface" OFF)
|
||||
|
||||
set(PLUGIN_INSTALL_PATH LIBRARY DESTINATION bin/snoreplugins)
|
||||
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
install(FILES share/FindLibsnore.cmake DESTINATION share/apps/cmake/modules)
|
||||
|
|
|
@ -25,6 +25,6 @@ install(TARGETS snorecore RUNTIME DESTINATION bin
|
|||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
install(FILES ${SnoreNotify_HDR} DESTINATION include/snore)
|
||||
install(FILES ${SnoreNotify_HDR} DESTINATION include/snore/core)
|
||||
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ void SnoreServer::publicatePlugin(SnorePlugin *plugin){
|
|||
connect(this,SIGNAL(applicationInitialized(Application*)),nb,SLOT(registerApplication(Application*)));
|
||||
connect(this,SIGNAL(applicationRemoved(Application*)),nb,SLOT(unregisterApplication(Application*)));
|
||||
nb->setSnore(this);
|
||||
nb->notify(QSharedPointer<Notification>(new Notification(NULL,"SnoreNotify","","Welcome","Snore Notify succesfully registred "+pluginName,"")));
|
||||
nb->notify(QSharedPointer<Notification>(new Notification(NULL,"SnoreNotify","Default Alert","Welcome","Snore Notify succesfully registred "+pluginName,"")));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@ if(QT_QTDBUS_FOUND)
|
|||
automoc4_add_library(freedesktop_frontend MODULE ${FREEDESKTOP_NOTIFICATION_FRONTEND_SRC} )
|
||||
target_link_libraries(freedesktop_frontend snorecore ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} )
|
||||
|
||||
install(TARGETS freedesktop_frontend RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
install(TARGETS freedesktop_frontend ${PLUGIN_INSTALL_PATH})
|
||||
|
||||
|
||||
endif(QT_QTDBUS_FOUND)
|
||||
|
||||
|
|
|
@ -7,9 +7,8 @@ if(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
|||
automoc4_add_library(freedesktop_backend MODULE ${FREEDESKTOP_NOTIFICATION_SRC} )
|
||||
target_link_libraries(freedesktop_backend snorecore ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} )
|
||||
|
||||
install(TARGETS freedesktop_backend RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
install(TARGETS freedesktop_backend ${PLUGIN_INSTALL_PATH})
|
||||
|
||||
else(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
||||
message(STATUS "Adding Freedesktop notification backend.... ")
|
||||
endif(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
||||
|
|
|
@ -8,9 +8,7 @@ if( GROWL_CPP )
|
|||
automoc4_add_library(growl_backend MODULE ${GROWL__SRC} )
|
||||
target_link_libraries(growl_backend snorecore ${QT_QTCORE_LIBRARY} ${GROWL_CPP} )
|
||||
|
||||
install(TARGETS growl_backend RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
install(TARGETS growl_backend ${PLUGIN_INSTALL_PATH})
|
||||
|
||||
else( GROWL_CPP )
|
||||
message( STATUS "libgrowl not found..., get it here http://github.com/mattn/gntp-send" )
|
||||
|
|
|
@ -7,8 +7,6 @@ if(WIN32)
|
|||
automoc4_add_library(snarln_backend MODULE ${SNARL__SRC} )
|
||||
target_link_libraries(snarln_backend snorecore ${QT_QTCORE_LIBRARY} )
|
||||
|
||||
install(TARGETS snarln_backend RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
install(TARGETS snarln_backend ${PLUGIN_INSTALL_PATH})
|
||||
|
||||
endif(WIN32)
|
||||
|
|
|
@ -5,6 +5,4 @@ set( SNARL_NETWORK_SRC
|
|||
automoc4_add_library(snarlnetwork MODULE ${SNARL_NETWORK_SRC} )
|
||||
target_link_libraries(snarlnetwork snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
install(TARGETS snarlnetwork RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
install(TARGETS snarlnetwork ${PLUGIN_INSTALL_PATH})
|
||||
|
|
|
@ -4,6 +4,4 @@ set( WEBPOSTER_SRC
|
|||
automoc4_add_library(webposter MODULE ${WEBPOSTER_SRC} )
|
||||
target_link_libraries(webposter snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
install(TARGETS webposter RUNTIME DESTINATION bin/snoreplugins
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
install(TARGETS webposter ${PLUGIN_INSTALL_PATH})
|
||||
|
|
Loading…
Reference in New Issue