CMakeLists.txt 981 Bytes
Newer Older
1 2
cmake_minimum_required(VERSION 2.8.12)

3
project(Milou)
4
set(PROJECT_VERSION "5.11.95")
5
set(PROJECT_VERSION_MAJOR 5)
6

7 8 9
set(QT_MIN_VERSION "5.6.0")
set(KF5_MIN_VERSION "5.24.0")

Laurent Montel's avatar
Laurent Montel committed
10
find_package(ECM 1.2.0 REQUIRED NO_MODULE)
11
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
12

13 14
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Script Qml Quick Widgets Test)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons I18n Declarative Service Plasma Runner)
Vishesh Handa's avatar
Vishesh Handa committed
15

16
include(FeatureSummary)
17
include(ECMAddTests)
18 19
include(KDEInstallDirs)
include(KDECMakeSettings)
20
include(KDECompilerSettings NO_POLICY_SCOPE)
21
include(GenerateExportHeader)
22

23 24 25 26
# find_package(KdepimLibs)
# set_package_properties(KdepimLibs PROPERTIES DESCRIPTION "KDE PIM Libraries"
#                        URL "http://www.kde.org"
#                        TYPE REQUIRED PURPOSE "Support for Email previews")
27

28
add_subdirectory(lib)
29
add_subdirectory(plasmoid)
30 31

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)