CMakeLists.txt 1.28 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
project(kmplot)
Laurent Montel's avatar
Laurent Montel committed
2
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
3
4
set (QT_MIN_VERSION "5.6.0")
set (KF5_MIN_VERSION "5.32.0")
Christoph Feck's avatar
Christoph Feck committed
5

Laurent Montel's avatar
Laurent Montel committed
6
find_package (ECM 1.3.0 REQUIRED NO_MODULE)
Christoph Feck's avatar
Christoph Feck committed
7
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
Laurent Montel's avatar
Laurent Montel committed
8

Patrick Spendrin's avatar
Patrick Spendrin committed
9
include(CheckIncludeFiles)
Christoph Feck's avatar
Christoph Feck committed
10
include(KDEInstallDirs)
Albert Astals Cid's avatar
Albert Astals Cid committed
11
include(ECMAddAppIcon)
12
include(ECMInstallIcons)
Christoph Feck's avatar
Christoph Feck committed
13
include(KDECMakeSettings)
14
include(KDECompilerSettings NO_POLICY_SCOPE)
Christoph Feck's avatar
Christoph Feck committed
15

16
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Svg Widgets PrintSupport)
Christoph Feck's avatar
Christoph Feck committed
17

18
find_package (KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Andreas Cord-Landwehr's avatar
Andreas Cord-Landwehr committed
19
    Crash
Christoph Feck's avatar
Christoph Feck committed
20
21
22
23
    GuiAddons
    I18n
    Parts
    WidgetsAddons
Albert Astals Cid's avatar
Albert Astals Cid committed
24
    DocTools
25
    DBusAddons
Christoph Feck's avatar
Christoph Feck committed
26
)
Patrick Spendrin's avatar
Patrick Spendrin committed
27

Laurent Montel's avatar
Laurent Montel committed
28
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
29
add_definitions (-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
30
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
Yuri Chornoivan's avatar
Yuri Chornoivan committed
31
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00)
32

Adriaan de Groot's avatar
Adriaan de Groot committed
33
check_include_files(ieeefp.h HAVE_IEEEFP_H)
34
configure_file(config-kmplot.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kmplot/config-kmplot.h)
Adriaan de Groot's avatar
Adriaan de Groot committed
35

Laurent Montel's avatar
Laurent Montel committed
36
add_subdirectory( doc )
Christoph Feck's avatar
Christoph Feck committed
37
add_subdirectory( kmplot )
38
add_subdirectory( icons )
Laurent Montel's avatar
Laurent Montel committed
39

Andreas Cord-Landwehr's avatar
Andreas Cord-Landwehr committed
40
ki18n_install(po)
41
install(FILES org.kde.kmplot.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Laurent Montel's avatar
Laurent Montel committed
42
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)