CMakeLists.txt 1.32 KB
Newer Older
1
2
3
4
5
cmake_minimum_required(VERSION 2.8.12)

project(Kfind)

# ECM setup
Laurent Montel's avatar
Laurent Montel committed
6
find_package(ECM 5.28.0 CONFIG REQUIRED)
7
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
Laurent Montel's avatar
Laurent Montel committed
8
9
set(QT_REQUIRED_VERSION "5.6.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
10
11
12
13
14
15
16
17

include(ECMSetupVersion)
include(ECMInstallIcons)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
Laurent Montel's avatar
Laurent Montel committed
18
19
include(ECMQtDeclareLoggingCategory)

Laurent Montel's avatar
Laurent Montel committed
20
21
22

# KDE Application Version, managed by release script
set (KDE_APPLICATIONS_VERSION_MAJOR "17")
23
set (KDE_APPLICATIONS_VERSION_MINOR "11")
24
set (KDE_APPLICATIONS_VERSION_MICRO "90")
Laurent Montel's avatar
Laurent Montel committed
25
26
27
set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")

set(KFIND_VERSION ${KDE_APPLICATIONS_VERSION})
28
29
30
31
32
33

ecm_setup_version(${KFIND_VERSION} VARIABLE_PREFIX KFIND
                        VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kfind_version.h"
)

# Build dependencies
34
find_package(KF5 REQUIRED COMPONENTS KDELibs4Support Archive DocTools WidgetsAddons)
35
36
37
38
39
40
41

add_definitions(-DQT_NO_URL_CAST_FROM_STRING)

add_subdirectory(src)
add_subdirectory(icons)
add_subdirectory(doc)

Laurent Montel's avatar
Laurent Montel committed
42
43
install( FILES kfind.categories DESTINATION ${KDE_INSTALL_CONFDIR} )

44
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)