CMakeLists.txt 707 Bytes
Newer Older
1
cmake_minimum_required(VERSION 3.5)
Laurent Montel's avatar
Laurent Montel committed
2
set(PIM_VERSION "5.15.40")
3
project(kdepim-apps-lib VERSION ${PIM_VERSION})
4

5
set(KF5_MIN_VERSION "5.73.0")
6

7
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
8
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
Laurent Montel's avatar
Laurent Montel committed
9 10 11 12
if (POLICY CMP0053)
    cmake_policy(SET CMP0053 NEW)
endif()

13 14 15 16
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)

17 18 19
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(ECMGeneratePriFile)
20

21 22 23 24
include(ECMSetupVersion)
include(FeatureSummary)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
25

Laurent Montel's avatar
Laurent Montel committed
26
set(KDEPIM_APPS_LIB_VERSION ${PIM_VERSION})
27

28
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)