mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-18 11:17:21 +00:00
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)
|
option(WITH_WEBINTERFACE "Buld with WebInterface" OFF)
|
||||||
|
|
||||||
|
set(PLUGIN_INSTALL_PATH LIBRARY DESTINATION bin/snoreplugins)
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(src)
|
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
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE 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(applicationInitialized(Application*)),nb,SLOT(registerApplication(Application*)));
|
||||||
connect(this,SIGNAL(applicationRemoved(Application*)),nb,SLOT(unregisterApplication(Application*)));
|
connect(this,SIGNAL(applicationRemoved(Application*)),nb,SLOT(unregisterApplication(Application*)));
|
||||||
nb->setSnore(this);
|
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} )
|
automoc4_add_library(freedesktop_frontend MODULE ${FREEDESKTOP_NOTIFICATION_FRONTEND_SRC} )
|
||||||
target_link_libraries(freedesktop_frontend snorecore ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} )
|
target_link_libraries(freedesktop_frontend snorecore ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} )
|
||||||
|
|
||||||
install(TARGETS freedesktop_frontend RUNTIME DESTINATION bin/snoreplugins
|
|
||||||
LIBRARY DESTINATION lib
|
install(TARGETS freedesktop_frontend ${PLUGIN_INSTALL_PATH})
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
|
||||||
endif(QT_QTDBUS_FOUND)
|
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} )
|
automoc4_add_library(freedesktop_backend MODULE ${FREEDESKTOP_NOTIFICATION_SRC} )
|
||||||
target_link_libraries(freedesktop_backend snorecore ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} )
|
target_link_libraries(freedesktop_backend snorecore ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} )
|
||||||
|
|
||||||
install(TARGETS freedesktop_backend RUNTIME DESTINATION bin/snoreplugins
|
install(TARGETS freedesktop_backend ${PLUGIN_INSTALL_PATH})
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
else(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
else(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
||||||
message(STATUS "Adding Freedesktop notification backend.... ")
|
message(STATUS "Adding Freedesktop notification backend.... ")
|
||||||
endif(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
endif(QT_QTDBUS_FOUND AND UNIX AND NOT APPLE)
|
||||||
|
@ -8,9 +8,7 @@ if( GROWL_CPP )
|
|||||||
automoc4_add_library(growl_backend MODULE ${GROWL__SRC} )
|
automoc4_add_library(growl_backend MODULE ${GROWL__SRC} )
|
||||||
target_link_libraries(growl_backend snorecore ${QT_QTCORE_LIBRARY} ${GROWL_CPP} )
|
target_link_libraries(growl_backend snorecore ${QT_QTCORE_LIBRARY} ${GROWL_CPP} )
|
||||||
|
|
||||||
install(TARGETS growl_backend RUNTIME DESTINATION bin/snoreplugins
|
install(TARGETS growl_backend ${PLUGIN_INSTALL_PATH})
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
|
||||||
else( GROWL_CPP )
|
else( GROWL_CPP )
|
||||||
message( STATUS "libgrowl not found..., get it here http://github.com/mattn/gntp-send" )
|
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} )
|
automoc4_add_library(snarln_backend MODULE ${SNARL__SRC} )
|
||||||
target_link_libraries(snarln_backend snorecore ${QT_QTCORE_LIBRARY} )
|
target_link_libraries(snarln_backend snorecore ${QT_QTCORE_LIBRARY} )
|
||||||
|
|
||||||
install(TARGETS snarln_backend RUNTIME DESTINATION bin/snoreplugins
|
install(TARGETS snarln_backend ${PLUGIN_INSTALL_PATH})
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
@ -5,6 +5,4 @@ set( SNARL_NETWORK_SRC
|
|||||||
automoc4_add_library(snarlnetwork MODULE ${SNARL_NETWORK_SRC} )
|
automoc4_add_library(snarlnetwork MODULE ${SNARL_NETWORK_SRC} )
|
||||||
target_link_libraries(snarlnetwork snorecore ${QT_QTNETWORK_LIBRARY} )
|
target_link_libraries(snarlnetwork snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||||
|
|
||||||
install(TARGETS snarlnetwork RUNTIME DESTINATION bin/snoreplugins
|
install(TARGETS snarlnetwork ${PLUGIN_INSTALL_PATH})
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
@ -4,6 +4,4 @@ set( WEBPOSTER_SRC
|
|||||||
automoc4_add_library(webposter MODULE ${WEBPOSTER_SRC} )
|
automoc4_add_library(webposter MODULE ${WEBPOSTER_SRC} )
|
||||||
target_link_libraries(webposter snorecore ${QT_QTNETWORK_LIBRARY} )
|
target_link_libraries(webposter snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||||
|
|
||||||
install(TARGETS webposter RUNTIME DESTINATION bin/snoreplugins
|
install(TARGETS webposter ${PLUGIN_INSTALL_PATH})
|
||||||
LIBRARY DESTINATION lib
|
|
||||||
ARCHIVE DESTINATION lib)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user