2014-07-08 01:15:28 +02:00
|
|
|
project( SnoreNotify )
|
2014-10-14 14:24:10 +02:00
|
|
|
cmake_minimum_required( VERSION 2.8.12 )
|
2014-07-08 01:15:28 +02:00
|
|
|
|
2015-02-26 14:07:02 +01:00
|
|
|
include(FeatureSummary)
|
|
|
|
|
2015-01-27 14:57:00 +01:00
|
|
|
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
|
2015-02-26 14:07:02 +01:00
|
|
|
set_package_properties(ECM PROPERTIES
|
|
|
|
DESCRIPTION "Extra modules and scripts for CMake."
|
|
|
|
URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
|
|
|
|
TYPE REQUIRED)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
2014-10-14 14:24:10 +02:00
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
|
|
|
|
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(KDECMakeSettings)
|
2015-07-02 14:24:11 +02:00
|
|
|
include(KDEFrameworkCompilerSettings)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
2015-03-26 15:56:05 +01:00
|
|
|
include(GenerateExportHeader)
|
|
|
|
|
2015-02-03 18:18:25 +01:00
|
|
|
include(ECMAddAppIcon)
|
2015-07-05 13:48:47 +02:00
|
|
|
include(ECMGeneratePriFile)
|
2015-02-03 18:18:25 +01:00
|
|
|
include(ECMInstallIcons)
|
2015-03-08 19:39:34 +01:00
|
|
|
include(ECMPackageConfigHelpers)
|
2015-03-26 15:56:05 +01:00
|
|
|
include(ECMSetupVersion)
|
2014-10-14 14:24:10 +02:00
|
|
|
|
2014-07-08 01:15:28 +02:00
|
|
|
#######################################################################
|
2015-02-01 15:21:49 +01:00
|
|
|
option(WITH_FRONTENDS "Build frontends currently only useful if WITH_SNORE_DAEMON=ON" OFF)
|
|
|
|
option(WITH_SNORE_DAEMON "Build the Snore daemon, which redirects notifications" OFF)
|
2014-07-08 01:15:28 +02:00
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
set(SNORE_VERSION_MAJOR 0)
|
|
|
|
set(SNORE_VERSION_MINOR 5)
|
2015-03-16 11:50:08 +01:00
|
|
|
set(SNORE_VERSION_PATCH 91)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
2014-09-20 14:54:02 +02:00
|
|
|
set(SNORE_SUFFIX "-qt5")
|
|
|
|
set(SNORE_CamelCase_SUFFIX "Qt5")
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED)
|
2015-03-26 15:56:05 +01:00
|
|
|
find_package(Qt5LinguistTools REQUIRED)
|
2014-09-20 14:54:02 +02:00
|
|
|
find_package(Qt5Network REQUIRED)
|
2014-09-20 15:36:28 +02:00
|
|
|
find_package(Qt5Quick REQUIRED)
|
2015-03-26 15:56:05 +01:00
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2014-08-11 17:15:39 +02:00
|
|
|
|
2014-08-20 13:48:16 +02:00
|
|
|
|
2014-08-22 13:59:59 +02:00
|
|
|
find_package(Doxygen QUIET)
|
|
|
|
set_package_properties(Doxygen PROPERTIES
|
2014-09-09 13:37:17 +02:00
|
|
|
DESCRIPTION "Doxygen a tool for generating documentation."
|
2014-08-22 14:10:06 +02:00
|
|
|
URL "http://www.stack.nl/~dimitri/doxygen/"
|
|
|
|
PURPOSE "Generation of API documentation"
|
2014-08-22 13:59:59 +02:00
|
|
|
TYPE OPTIONAL)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
|
|
|
if(DOXYGEN_FOUND)
|
2015-04-12 14:54:10 +02:00
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
|
|
|
add_custom_target(doc
|
|
|
|
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
|
|
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
|
|
)
|
|
|
|
endif(DOXYGEN_FOUND)
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-02-02 11:39:21 +01:00
|
|
|
set(LIBSNORE_PLUGIN_PATH ${KDE_INSTALL_PLUGINDIR}/libsnore${SNORE_SUFFIX})
|
2014-07-08 01:15:28 +02:00
|
|
|
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
|
|
|
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
|
|
|
|
2015-05-05 18:13:33 +02:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
2014-07-30 00:37:12 +02:00
|
|
|
|
2014-07-08 01:15:28 +02:00
|
|
|
add_subdirectory(data)
|
2015-03-26 15:56:05 +01:00
|
|
|
add_subdirectory(lang)
|
2014-07-08 01:15:28 +02:00
|
|
|
add_subdirectory(src)
|
2015-06-23 17:04:57 +02:00
|
|
|
add_subdirectory(autotest)
|
2015-03-26 15:56:05 +01:00
|
|
|
add_subdirectory(share)
|
2014-07-08 01:15:28 +02:00
|
|
|
|
|
|
|
|
2014-09-09 13:37:17 +02:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES)
|