CMakeLists.txt 1.11 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(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
30
31
include(KDECMakeSettings)
include(ECMAddTests)
32
33
34
35
if (${KF5Config_VERSION} STRGREATER "5.56.0")
        add_definitions(-DQT_NO_FOREACH)
        MESSAGE(STATUS "compile without foreach")
endif()
36
37
38
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
   add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
Laurent Montel's avatar
Laurent Montel committed
39

40
add_subdirectory(src)
Laurent Montel's avatar
Laurent Montel committed
41
add_subdirectory(doc)
42
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)