CMakeLists.txt 1.16 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
project(kgoldrunner)
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 Qml Quick QuickWidgets Svg Test)
Frederik Schwarzer's avatar
Frederik Schwarzer committed
11
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Laurent Montel's avatar
Laurent Montel committed
12 13
    CoreAddons
    Config
Frederik Schwarzer's avatar
Frederik Schwarzer committed
14
    Crash
Laurent Montel's avatar
Laurent Montel committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    ItemModels
    WidgetsAddons
    WindowSystem
    Config
    DBusAddons
    I18n
    ConfigWidgets
    TextWidgets
    XmlGui
    KIO
    NotifyConfig
    NewStuff
    KDELibs4Support)

find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)

include_directories(BEFORE ${PHONON_INCLUDES})

include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
39
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
40 41

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
42

Frederik Schwarzer's avatar
Frederik Schwarzer committed
43 44 45 46
add_subdirectory(src)
add_subdirectory(gamedata)
add_subdirectory(themes)
add_subdirectory(doc)
47 48

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)