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

Laurent Montel's avatar
Laurent Montel committed
3
4
5
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")

Laurent Montel's avatar
Laurent Montel committed
6
find_package(ECM 1.7.0 REQUIRED CONFIG)
Laurent Montel's avatar
Laurent Montel committed
7
8
9
10
11
12
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)
find_package(KF5 REQUIRED COMPONENTS 
    CoreAddons 
    Config 
Michael Palimaka's avatar
Michael Palimaka committed
13
14
    DBusAddons
    DocTools
Laurent Montel's avatar
Laurent Montel committed
15
16
17
18
19
20
21
22
23
24
    WidgetsAddons 
    Config 
    I18n 
    GuiAddons 
    ConfigWidgets 
    ItemViews 
    IconThemes 
    XmlGui
    KIO
    NotifyConfig
25
    )
Laurent Montel's avatar
Laurent Montel committed
26
27
28
29

find_package(KF5KDEGames 4.9.0 REQUIRED)

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

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
38
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
39
40


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