CMakeLists.txt 966 Bytes
Newer Older
1
project(kdiamond)
2

Laurent Montel's avatar
Laurent Montel committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")

find_package(ECM 1.3.0 REQUIRED CONFIG)
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 )
find_package(KF5 REQUIRED COMPONENTS 
    CoreAddons 
    Config 
    WidgetsAddons 
    Config 
    I18n 
    GuiAddons 
    ConfigWidgets 
    IconThemes 
    XmlGui
Laurent Montel's avatar
Laurent Montel committed
20
    NotifyConfig)
Laurent Montel's avatar
Laurent Montel committed
21
22
23
24
25
26
27
28
29
30
31
    
find_package(KF5KDEGames 4.9.0 REQUIRED)

include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kdiamond")
32
33


34
add_subdirectory(src)
35
add_subdirectory(sounds)
Albert Astals Cid's avatar
Albert Astals Cid committed
36
add_subdirectory(themes)
37
add_subdirectory(doc)
38
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)