2014-07-07 23:15:28 +00:00
|
|
|
project( SnoreNotify )
|
2014-10-14 12:24:10 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.12 )
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2015-01-27 13:57:00 +00:00
|
|
|
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2014-10-14 12:24:10 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
|
|
|
|
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(KDECompilerSettings)
|
|
|
|
include(KDECMakeSettings)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2015-02-03 17:18:25 +00:00
|
|
|
include(ECMAddAppIcon)
|
|
|
|
include(ECMInstallIcons)
|
|
|
|
|
2014-08-11 15:15:39 +00:00
|
|
|
include(GenerateExportHeader)
|
2014-08-22 11:59:59 +00:00
|
|
|
include(FeatureSummary)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2014-10-14 12:24:10 +00:00
|
|
|
|
|
|
|
|
2014-07-07 23:15:28 +00:00
|
|
|
#######################################################################
|
2015-02-01 14:21:49 +00: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-07 23:15:28 +00:00
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
set(SNORE_VERSION_MAJOR 0)
|
|
|
|
set(SNORE_VERSION_MINOR 5)
|
2014-09-20 12:54:02 +00:00
|
|
|
set(SNORE_VERSION_PATCH 90)
|
2014-09-11 09:11:53 +00:00
|
|
|
set(SNORE_VERSION_SUFFIX "")
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2014-09-20 12:54:02 +00:00
|
|
|
set(SNORE_SUFFIX "-qt5")
|
|
|
|
set(SNORE_CamelCase_SUFFIX "Qt5")
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
find_package(Qt5Network REQUIRED)
|
2014-09-20 13:36:28 +00:00
|
|
|
find_package(Qt5Quick REQUIRED)
|
2014-08-11 15:15:39 +00:00
|
|
|
|
2014-08-20 11:48:16 +00:00
|
|
|
|
2014-08-22 11:59:59 +00:00
|
|
|
find_package(Doxygen QUIET)
|
|
|
|
set_package_properties(Doxygen PROPERTIES
|
2014-09-09 11:37:17 +00:00
|
|
|
DESCRIPTION "Doxygen a tool for generating documentation."
|
2014-08-22 12:10:06 +00:00
|
|
|
URL "http://www.stack.nl/~dimitri/doxygen/"
|
|
|
|
PURPOSE "Generation of API documentation"
|
2014-08-22 11:59:59 +00:00
|
|
|
TYPE OPTIONAL)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
|
|
|
if(DOXYGEN_FOUND)
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @only)
|
|
|
|
|
|
|
|
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 10:39:21 +00:00
|
|
|
set(LIBSNORE_PLUGIN_PATH ${KDE_INSTALL_PLUGINDIR}/libsnore${SNORE_SUFFIX})
|
|
|
|
set(LIBSNORE_FULL_PLUGIN_PATH ${KDE_INSTALL_FULL_PLUGINDIR}/libsnore${SNORE_SUFFIX})
|
2014-07-07 23:15:28 +00:00
|
|
|
|
|
|
|
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
|
|
|
add_definitions(-DLIBSNORE_PLUGIN_PATH="${LIBSNORE_FULL_PLUGIN_PATH}" -DSNORE_SUFFIX="${SNORE_SUFFIX}")
|
|
|
|
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
|
|
|
|
2014-07-29 22:37:12 +00:00
|
|
|
|
2014-07-07 23:15:28 +00:00
|
|
|
add_subdirectory(data)
|
|
|
|
add_subdirectory(share)
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
|
2014-09-09 11:37:17 +00:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES)
|