CMakeLists.txt 933 Bytes
Newer Older
1
project (kubrick)
2

3
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
Andrius Štikonas's avatar
Andrius Štikonas committed
4
set (QT_MIN_VERSION "5.7.0")
5
set (KF5_MIN_VERSION "5.23.0")
6

Laurent Montel's avatar
Laurent Montel committed
7
find_package(ECM 1.7.0 REQUIRED CONFIG)
Laurent Montel's avatar
Laurent Montel committed
8
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
9

Laurent Montel's avatar
Laurent Montel committed
10
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg OpenGL)
Frederik Schwarzer's avatar
Frederik Schwarzer committed
11
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Laurent Montel's avatar
Laurent Montel committed
12
    Config
Frederik Schwarzer's avatar
Frederik Schwarzer committed
13 14 15
    ConfigWidgets
    CoreAddons
    Crash
Andrius Štikonas's avatar
Andrius Štikonas committed
16 17
    DocTools
    I18n
Laurent Montel's avatar
Laurent Montel committed
18
    KIO
Frederik Schwarzer's avatar
Frederik Schwarzer committed
19 20 21
    WidgetsAddons
    XmlGui
)
Laurent Montel's avatar
Laurent Montel committed
22 23 24

find_package(KF5KDEGames 4.9.0 REQUIRED)

Andrius Štikonas's avatar
Andrius Štikonas committed
25
find_package(OpenGL REQUIRED)
Laurent Montel's avatar
Laurent Montel committed
26

Laurent Montel's avatar
Laurent Montel committed
27
include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
28
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
29 30
include(ECMInstallIcons)
include(KDEInstallDirs)
31
include(KDECompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
32
include(KDECMakeSettings)
33

Frederik Schwarzer's avatar
Frederik Schwarzer committed
34 35 36
add_subdirectory(src)
add_subdirectory(data)
add_subdirectory(themes)
37
add_subdirectory(doc)
Frederik Schwarzer's avatar
Frederik Schwarzer committed
38

39
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)