CMakeLists.txt 1.4 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
cmake_minimum_required(VERSION 3.5)
2

3
# KDE Application Version, managed by release script
4
set(RELEASE_SERVICE_VERSION_MAJOR "20")
5
set(RELEASE_SERVICE_VERSION_MINOR "07")
6
set(RELEASE_SERVICE_VERSION_MICRO "90")
7
set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
8

9
project(khangman VERSION ${RELEASE_SERVICE_VERSION})
Laurent Montel's avatar
Laurent Montel committed
10

11
include(FeatureSummary)
12
find_package(Qt5 REQUIRED COMPONENTS Core Qml Quick QuickWidgets Svg)
13

Laurent Montel's avatar
Laurent Montel committed
14
find_package(ECM 1.7.0 NO_MODULE REQUIRED)
15
16
17
18
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

include(KDEInstallDirs)
include(KDECMakeSettings)
19
include(KDECompilerSettings NO_POLICY_SCOPE)
20
21
include(ECMInstallIcons)
include(GenerateExportHeader)
Laurent Montel's avatar
Laurent Montel committed
22
include(ECMAddAppIcon)
23
include(ECMSetupVersion)
24

25
find_package(KF5 5.15.0 REQUIRED COMPONENTS
26
27
28
29
30
31
    I18n
    Crash
    Completion
    Config
    CoreAddons
    ConfigWidgets
32
    Declarative
33
34
35
36
    DocTools
    NewStuff
    Notifications
    XmlGui
Laurent Montel's avatar
Laurent Montel committed
37
    KIO
38
39
40
)

find_package(LibKEduVocDocument REQUIRED)
41
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
42

43

44
add_subdirectory( doc )
45
add_subdirectory( src )
Laurent Montel's avatar
Laurent Montel committed
46

47
48
add_subdirectory( themes )
add_subdirectory( fonts )
49

50
add_subdirectory( icons )
51

52
install(FILES org.kde.khangman.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Laurent Montel's avatar
Laurent Montel committed
53
54

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)