diff --git a/CMakeLists.txt b/CMakeLists.txt index d64dede..e55ce2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ cmake_policy(SET CMP0020 NEW) include(GNUInstallDirs) include(GenerateExportHeader) +include(FeatureSummary) ####################################################################### @@ -47,7 +48,12 @@ else() 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) 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} COMMENT "Generating API documentation with Doxygen" VERBATIM ) -else(DOXYGEN_FOUND) - message(STATUS "No doxygen package found") endif(DOXYGEN_FOUND) @@ -80,3 +84,4 @@ add_subdirectory(share) add_subdirectory(src) +feature_summary(WHAT ALL) diff --git a/src/core/LibsnoreConfig.cmake.in b/src/core/LibsnoreConfig.cmake.in index 38eb7e1..7a649ea 100644 --- a/src/core/LibsnoreConfig.cmake.in +++ b/src/core/LibsnoreConfig.cmake.in @@ -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 find_package(Qt5Network REQUIRED) find_package(Qt5Widgets REQUIRED) -endif() \ No newline at end of file +endif() + +include("${CMAKE_CURRENT_LIST_DIR}/LibsnoreTarget.cmake") + +set(LIBSNORE_FOUND TRUE) +set(LIBSNORE_LIBRARIES Snore::Libsnore) diff --git a/src/plugins/backends/growl/CMakeLists.txt b/src/plugins/backends/growl/CMakeLists.txt index b712442..078dc1a 100644 --- a/src/plugins/backends/growl/CMakeLists.txt +++ b/src/plugins/backends/growl/CMakeLists.txt @@ -1,13 +1,16 @@ -message( STATUS "Adding libgrowl backend" ) -find_package(SnoreGrowl REQUIRED) -find_package(SnoreGrowl++ REQUIRED) +find_package(SnoreGrowl++) +set_package_properties(SnoreGrowl++ PROPERTIES + 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()