log packages found

This commit is contained in:
Patrick von Reth 2014-08-22 13:59:59 +02:00
parent 2715cc7a44
commit adb44efaf9
3 changed files with 26 additions and 17 deletions

View File

@ -9,6 +9,7 @@ cmake_policy(SET CMP0020 NEW)
include(GNUInstallDirs) include(GNUInstallDirs)
include(GenerateExportHeader) include(GenerateExportHeader)
include(FeatureSummary)
####################################################################### #######################################################################
@ -47,7 +48,12 @@ else()
endif() endif()
find_package(Doxygen) find_package(Doxygen QUIET)
set_package_properties(Doxygen PROPERTIES
DESCRIPTION "Application for documentation generation"
URL "https://github.com/Snorenotify/SnoreGrowl"
PURPOSE "Generation API documentation"
TYPE OPTIONAL)
if(DOXYGEN_FOUND) if(DOXYGEN_FOUND)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @only) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @only)
@ -57,8 +63,6 @@ if(DOXYGEN_FOUND)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM COMMENT "Generating API documentation with Doxygen" VERBATIM
) )
else(DOXYGEN_FOUND)
message(STATUS "No doxygen package found")
endif(DOXYGEN_FOUND) endif(DOXYGEN_FOUND)
@ -80,3 +84,4 @@ add_subdirectory(share)
add_subdirectory(src) add_subdirectory(src)
feature_summary(WHAT ALL)

View File

@ -1,8 +1,9 @@
include("${CMAKE_CURRENT_LIST_DIR}/LibsnoreTarget.cmake")
set(LIBSNORE_FOUND TRUE)
set(LIBSNORE_LIBRARIES Snore::Libsnore)
if(NOT @WITH_QT4@)#WITH_QT4 if(NOT @WITH_QT4@)#WITH_QT4
find_package(Qt5Network REQUIRED) find_package(Qt5Network REQUIRED)
find_package(Qt5Widgets REQUIRED) find_package(Qt5Widgets REQUIRED)
endif() endif()
include("${CMAKE_CURRENT_LIST_DIR}/LibsnoreTarget.cmake")
set(LIBSNORE_FOUND TRUE)
set(LIBSNORE_LIBRARIES Snore::Libsnore)

View File

@ -1,13 +1,16 @@
message( STATUS "Adding libgrowl backend" ) find_package(SnoreGrowl++)
find_package(SnoreGrowl REQUIRED) set_package_properties(SnoreGrowl++ PROPERTIES
find_package(SnoreGrowl++ REQUIRED) DESCRIPTION "SnoreGrowl is a library providing Growl network notifications."
URL "https://github.com/Snorenotify/SnoreGrowl"
PURPOSE "Enable libgrowl backend"
TYPE RECOMMENDED)
find_package(Threads REQUIRED) if(SnoreGrowl++_FOUND)
set( GROWL_SRC growlbackend.cpp)
set( GROWL_SRC growlbackend.cpp) 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})
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})
install(TARGETS libsnore_backend_growl ${SNORE_PLUGIN_INSTALL_PATH}) install(TARGETS libsnore_backend_growl ${SNORE_PLUGIN_INSTALL_PATH})
endif()