snorenotify/CMakeLists.txt

82 lines
2.3 KiB
CMake
Raw Normal View History

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)
2016-01-11 16:08:31 +01:00
include(CMakeDependentOption)
2015-03-26 15:56:05 +01:00
include(ECMAddAppIcon)
2015-07-05 13:48:47 +02:00
include(ECMGeneratePriFile)
include(ECMInstallIcons)
include(ECMMarkNonGuiExecutable)
2015-07-24 01:30:16 +02:00
include(ECMOptionalAddSubdirectory)
include(ECMPackageConfigHelpers)
2015-08-24 17:48:08 +02:00
include(ECMPoQmTools)
2015-03-26 15:56:05 +01:00
include(ECMSetupVersion)
2014-10-14 14:24:10 +02:00
2017-01-20 10:15:49 +01:00
include(QtStatic)
2014-07-08 01:15:28 +02:00
set(SNORE_VERSION_MAJOR 0)
2016-01-11 16:08:31 +01:00
set(SNORE_VERSION_MINOR 7)
2018-06-14 09:25:33 +02:00
set(SNORE_VERSION_PATCH 1)
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)
find_package(Qt5Network REQUIRED)
2015-12-02 17:15:31 +01:00
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets QUIET)
find_package(Qt5Quick QUIET)
set_package_properties(Qt5Quick PROPERTIES
PURPOSE "Support builtin notifiaction backend."
TYPE OPTIONAL)
2015-12-02 17:15:31 +01:00
set_package_properties(Qt5Widgets PROPERTIES
PURPOSE "Supprot for the daemon and the settings dialog as well as some backends."
TYPE OPTIONAL)
2014-08-20 13:48:16 +02:00
option(SNORE_STATIC "Build a static snore" OFF)
option(SNORE_STATIC_QT "Build a static snore" OFF)
set(LIBSNORE_INCLUDE_DIR ${KDE_INSTALL_INCLUDEDIR}/libsnore)
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})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
2014-07-08 01:15:28 +02:00
add_subdirectory(data)
add_subdirectory(src)
if (NOT SNORE_STATIC)
add_subdirectory(autotest)
endif()
2014-07-08 01:15:28 +02:00
2015-08-24 17:48:08 +02:00
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ecm_install_po_files_as_qm(po)
endif()
2014-07-08 01:15:28 +02:00
generate_snore_plugin_header()
2014-09-09 13:37:17 +02:00
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES)