CMakeLists.txt 1.08 KB
Newer Older
1
PROJECT(ksquares)
2

Laurent Montel's avatar
Laurent Montel committed
3
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
4
5
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
Laurent Montel's avatar
Laurent Montel committed
6

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

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

find_package(KF5KDEGames 4.9.0 REQUIRED)

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

Frederik Schwarzer's avatar
Frederik Schwarzer committed
33
34
35
36
37
38
39
40
41
add_definitions(
    -DQT_USE_FAST_CONCATENATION
    -DQT_USE_FAST_OPERATOR_PLUS
    -DQT_NO_CAST_FROM_ASCII
    -DQT_NO_CAST_TO_ASCII
    -DQT_NO_CAST_FROM_BYTEARRAY
    -DQT_NO_URL_CAST_FROM_STRING
    -DQT_USE_QSTRINGBUILDER
)
42

43
add_subdirectory(src)
Laurent Montel's avatar
Laurent Montel committed
44
add_subdirectory(doc)
45
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)