dont ship gntp-send

This commit is contained in:
Patrick von Reth 2014-08-22 12:35:01 +02:00
parent 11a9133716
commit 2715cc7a44
5 changed files with 9 additions and 26 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "thirdparty/gntp-send"]
path = thirdparty/gntp-send
url = https://github.com/Snorenotify/gntp-send.git

View File

@ -46,6 +46,7 @@ else()
set(SNORE_CamelCase_SUFFIX "Qt5")
endif()
find_package(Doxygen)
if(DOXYGEN_FOUND)

View File

@ -49,8 +49,6 @@ target_link_libraries( libsnore PUBLIC ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
add_library(Snore::Libsnore ALIAS libsnore)
generate_export_header(libsnore
EXPORT_FILE_NAME snore_exports.h
EXPORT_MACRO_NAME SNORE_EXPORT

View File

@ -1,25 +1,13 @@
if(EXISTS ${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/)
message( STATUS "Adding libgrowl backend" )
message( STATUS "Adding libgrowl backend" )
find_package(SnoreGrowl REQUIRED)
find_package(SnoreGrowl++ REQUIRED)
find_package(Threads REQUIRED)
include_directories(${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/include)
find_package(Threads REQUIRED)
set( GROWL_SRC growlbackend.cpp
${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/src/tcp.c
${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/src/md5.c
${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/src/growl.c
${CMAKE_SOURCE_DIR}/thirdparty/gntp-send/src/growl.cpp)
set( GROWL_SRC growlbackend.cpp)
add_library(libsnore_backend_growl MODULE ${GROWL_SRC} )
target_link_libraries(libsnore_backend_growl Snore::Libsnore ${QT_QTCORE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(libsnore_backend_growl PROPERTIES COMPILE_FLAGS "-DGROWL_DLL -DGROWL_CPP_DLL" )
add_library(libsnore_backend_growl MODULE ${GROWL_SRC} )
target_link_libraries(libsnore_backend_growl Snore::Libsnore Snore::SnoreGrowl++ ${QT_QTCORE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
if( WIN32 )
target_link_libraries(libsnore_backend_growl ws2_32 )
endif()
install(TARGETS libsnore_backend_growl ${SNORE_PLUGIN_INSTALL_PATH})
else()
message( WARNING "To build the Growl Backend please checkout the submodule" )
endif()
install(TARGETS libsnore_backend_growl ${SNORE_PLUGIN_INSTALL_PATH})

@ -1 +0,0 @@
Subproject commit 02398466d3a1fa80f99fee63606239eed009a1c8