CMakeLists.txt 1.15 KB
Newer Older
1
project(kdiamond)
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

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 )
Frederik Schwarzer's avatar
Frederik Schwarzer committed
11
12
13
14
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
    CoreAddons
    Config
    Crash
Michael Palimaka's avatar
Michael Palimaka committed
15
16
    DBusAddons
    DocTools
Frederik Schwarzer's avatar
Frederik Schwarzer committed
17
18
19
20
    WidgetsAddons
    Config
    I18n
    ConfigWidgets
Laurent Montel's avatar
Laurent Montel committed
21
    XmlGui
Michael Palimaka's avatar
Michael Palimaka committed
22
    Notifications
Frederik Schwarzer's avatar
Frederik Schwarzer committed
23
24
25
    NotifyConfig
)

Laurent Montel's avatar
Laurent Montel committed
26
27
28
29
30
find_package(KF5KDEGames 4.9.0 REQUIRED)

include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
31
include(KDECompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
32
include(KDECMakeSettings)
33
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
34

Frederik Schwarzer's avatar
Frederik Schwarzer committed
35
36
37
38
39
40
41
42
43
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
)
44

45
add_subdirectory(src)
46
add_subdirectory(sounds)
Albert Astals Cid's avatar
Albert Astals Cid committed
47
add_subdirectory(themes)
48
add_subdirectory(doc)
49
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)