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

Laurent Montel's avatar
Laurent Montel committed
3
4
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
Frederik Schwarzer's avatar
Frederik Schwarzer committed
5
set (KF5_MIN_VERSION "5.15.0")
Laurent Montel's avatar
Laurent Montel committed
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
9
10
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Test)
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
    GuiAddons
    I18n
    IconThemes
    ItemViews
Laurent Montel's avatar
Laurent Montel committed
22
23
    KIO
    NotifyConfig
Frederik Schwarzer's avatar
Frederik Schwarzer committed
24
25
26
    WidgetsAddons
    XmlGui
)
Laurent Montel's avatar
Laurent Montel committed
27
28
29
30

find_package(KF5KDEGames 4.9.0 REQUIRED)

include(FeatureSummary)
Laurent Montel's avatar
Laurent Montel committed
31
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
32
33
34
35
36
37
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
include(ECMAddTests)

Frederik Schwarzer's avatar
Frederik Schwarzer committed
38
39
40
41
42
43
44
45
46
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
)
47

48
add_subdirectory(src)
Laurent Montel's avatar
Laurent Montel committed
49
add_subdirectory(doc)
50
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)