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-02-26 13:07:02 +00:00
|
|
|
include(FeatureSummary)
|
|
|
|
|
2015-01-27 13:57:00 +00:00
|
|
|
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
|
2015-02-26 13:07:02 +00: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-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(KDECMakeSettings)
|
2015-07-02 12:24:11 +00:00
|
|
|
include(KDEFrameworkCompilerSettings)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2015-03-26 14:56:05 +00:00
|
|
|
include(GenerateExportHeader)
|
2016-01-11 15:08:31 +00:00
|
|
|
include(CMakeDependentOption)
|
2015-03-26 14:56:05 +00:00
|
|
|
|
2015-02-03 17:18:25 +00:00
|
|
|
include(ECMAddAppIcon)
|
2015-07-05 11:48:47 +00:00
|
|
|
include(ECMGeneratePriFile)
|
2015-02-03 17:18:25 +00:00
|
|
|
include(ECMInstallIcons)
|
2015-08-17 10:02:44 +00:00
|
|
|
include(ECMMarkNonGuiExecutable)
|
2015-07-23 23:30:16 +00:00
|
|
|
include(ECMOptionalAddSubdirectory)
|
2015-08-17 10:02:44 +00:00
|
|
|
include(ECMPackageConfigHelpers)
|
2015-08-24 15:48:08 +00:00
|
|
|
include(ECMPoQmTools)
|
2015-03-26 14:56:05 +00:00
|
|
|
include(ECMSetupVersion)
|
2014-10-14 12:24:10 +00:00
|
|
|
|
2014-07-07 23:15:28 +00:00
|
|
|
|
|
|
|
set(SNORE_VERSION_MAJOR 0)
|
2016-01-11 15:08:31 +00:00
|
|
|
set(SNORE_VERSION_MINOR 7)
|
2018-06-14 07:25:33 +00:00
|
|
|
set(SNORE_VERSION_PATCH 1)
|
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(Qt5Network REQUIRED)
|
2015-12-02 16:15:31 +00:00
|
|
|
find_package(Qt5Gui REQUIRED)
|
|
|
|
find_package(Qt5Widgets QUIET)
|
|
|
|
|
|
|
|
set_package_properties(Qt5Widgets PROPERTIES
|
|
|
|
PURPOSE "Supprot for the daemon and the settings dialog as well as some backends."
|
|
|
|
TYPE OPTIONAL)
|
2014-08-11 15:15:39 +00:00
|
|
|
|
2014-08-20 11:48:16 +00:00
|
|
|
|
2015-12-02 15:08:15 +00:00
|
|
|
set(LIBSNORE_INCLUDE_DIR ${KDE_INSTALL_INCLUDEDIR}/libsnore)
|
|
|
|
|
2015-02-02 10:39:21 +00:00
|
|
|
set(LIBSNORE_PLUGIN_PATH ${KDE_INSTALL_PLUGINDIR}/libsnore${SNORE_SUFFIX})
|
2014-07-07 23:15:28 +00:00
|
|
|
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
|
|
|
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
|
|
|
|
2015-05-05 16:13:33 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
2014-07-29 22:37:12 +00:00
|
|
|
|
2014-07-07 23:15:28 +00:00
|
|
|
add_subdirectory(data)
|
|
|
|
add_subdirectory(src)
|
2015-06-23 15:04:57 +00:00
|
|
|
add_subdirectory(autotest)
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2015-08-24 15:48:08 +00:00
|
|
|
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
|
|
|
|
ecm_install_po_files_as_qm(po)
|
|
|
|
endif()
|
|
|
|
|
2014-07-07 23:15:28 +00:00
|
|
|
|
2014-09-09 11:37:17 +00:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES)
|