CMakeLists.txt 1.3 KB
Newer Older
Albert Astals Cid's avatar
Albert Astals Cid committed
1
project(kfourinline)
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")
6

Laurent Montel's avatar
Laurent Montel committed
7
find_package(ECM 1.7.0 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})

Andreas Sturmlechner's avatar
Andreas Sturmlechner committed
10
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg)
Frederik Schwarzer's avatar
Frederik Schwarzer committed
11
12
13
14
15
16
17
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
    CoreAddons
    Config
    Crash
    I18n
    ConfigWidgets
    Completion
Laurent Montel's avatar
Laurent Montel committed
18
    XmlGui
Laurent Montel's avatar
Laurent Montel committed
19
    DNSSD
Laurent Montel's avatar
Laurent Montel committed
20
21
22
    KDELibs4Support
    DocTools
)
Laurent Montel's avatar
Laurent Montel committed
23
24
25
26
27
28

find_package(KF5KDEGames 4.9.0 REQUIRED)

include(FeatureSummary)
include(ECMInstallIcons)
include(KDEInstallDirs)
29
include(KDECompilerSettings NO_POLICY_SCOPE)
Laurent Montel's avatar
Laurent Montel committed
30
include(KDECMakeSettings)
Laurent Montel's avatar
Laurent Montel committed
31
32
include(ECMAddAppIcon)

Laurent Montel's avatar
Laurent Montel committed
33
34

add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
35

Frederik Schwarzer's avatar
Frederik Schwarzer committed
36
37
38
add_subdirectory(src)
add_subdirectory(grafix)
add_subdirectory(doc)
39
40
41
42


########### install files ###############

Frederik Schwarzer's avatar
Frederik Schwarzer committed
43
install(PROGRAMS org.kde.kfourinline.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
44

Frederik Schwarzer's avatar
Frederik Schwarzer committed
45
46
47
48
49
50
51
52
53
ecm_install_icons(ICONS
    128-apps-kfourinline.png
    16-apps-kfourinline.png
    22-apps-kfourinline.png
    32-apps-kfourinline.png
    48-apps-kfourinline.png
    64-apps-kfourinline.png
    DESTINATION ${KDE_INSTALL_ICONDIR}
)
54

55
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
56