CMakeLists.txt 1.58 KB
Newer Older
1
cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
2
3

# KDE Application Version, managed by release script
4
set(RELEASE_SERVICE_VERSION_MAJOR "22")
5
set(RELEASE_SERVICE_VERSION_MINOR "07")
6
7
set(RELEASE_SERVICE_VERSION_MICRO "70")
set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
8

9
project(kbreakout VERSION ${RELEASE_SERVICE_VERSION})
10

11
set (QT_MIN_VERSION "5.15.0")
12
set (KF5_MIN_VERSION "5.90.0")
13

14
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
15
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
16

17
18
19
20
21
22
23
24
25
26
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)

include(FeatureSummary)
include(ECMInstallIcons)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)

27
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets)
Frederik Schwarzer's avatar
Frederik Schwarzer committed
28
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Laurent Montel's avatar
Laurent Montel committed
29
30
    CoreAddons 
    Config 
Frederik Schwarzer's avatar
Frederik Schwarzer committed
31
    Crash
Laurent Montel's avatar
Laurent Montel committed
32
33
34
35
36
37
    WidgetsAddons 
    Config 
    DBusAddons 
    I18n 
    ConfigWidgets 
    XmlGui
Laurent Montel's avatar
Laurent Montel committed
38
39
    DocTools
)
Laurent Montel's avatar
Laurent Montel committed
40

41
find_package(KF5KDEGames 7.3.0 REQUIRED)
Laurent Montel's avatar
Laurent Montel committed
42

43
add_definitions(
44
45
    -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
    -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
46
    -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
47
    -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
48
)
Laurent Montel's avatar
Laurent Montel committed
49

Frederik Schwarzer's avatar
Frederik Schwarzer committed
50
51
52
53
add_subdirectory(src)
add_subdirectory(pics)
add_subdirectory(themes)
add_subdirectory(levelsets)
54
add_subdirectory(doc)
Laurent Montel's avatar
Laurent Montel committed
55

56
57
58
ki18n_install(po)
kdoctools_install(po)

59
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)