# General setup
#####################################################################
+cmake_minimum_required(VERSION 3.5)
+
# Versions
set(QUASSEL_MAJOR 0)
set(QUASSEL_MINOR 13)
endif()
# Set up project
-project(Quassel C CXX)
+project(Quassel CXX)
# General conveniences
set(CMAKE_AUTOMOC ON)
# Include various CMake modules
include(CMakePushCheckState)
include(CheckFunctionExists)
-include(CheckIncludeFile)
+include(CheckIncludeFileCXX)
include(CheckCXXSourceCompiles)
include(CMakeDependentOption)
include(FeatureSummary)
# Setup CMake
#####################################################################
-if (WITH_KDE)
- cmake_minimum_required(VERSION 2.8.12)
-else()
- cmake_minimum_required(VERSION 2.8.9)
-endif()
-
# Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
# These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
if (POLICY CMP0043)
# Check for syslog support
if (NOT WIN32)
- check_include_file(syslog.h HAVE_SYSLOG)
+ check_include_file_cxx(syslog.h HAVE_SYSLOG)
add_feature_info("syslog.h" HAVE_SYSLOG "Provide support for logging to the syslog")
endif()