CMakeLists.txt 1.19 KB
Newer Older
1
2
project(kmousetool)

Christoph Feck's avatar
Christoph Feck committed
3
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
4
set(QT_MIN_VERSION "5.9.0")
5
set(KF5_MIN_VERSION "5.46.0")
Christoph Feck's avatar
Christoph Feck committed
6

7

8
find_package (ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
9
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
Christoph Feck's avatar
Christoph Feck committed
10
11
12
13
14

include(CheckIncludeFiles)
include(KDEInstallDirs)
include(ECMInstallIcons)
include(KDECMakeSettings)
15
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
Christoph Feck's avatar
Christoph Feck committed
16
17
18
19
include(FeatureSummary)

find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)

20
find_package (KF5 ${KF5_MIN_VERSION} REQUIRED
21
22
23
24
    DBusAddons
    DocTools
    I18n
    IconThemes
Christoph Feck's avatar
Christoph Feck committed
25
    Notifications
26
    XmlGui
27
    WindowSystem
Christoph Feck's avatar
Christoph Feck committed
28
29
30
)

find_package(Phonon4Qt5 REQUIRED NO_MODULE)
31

Christoph Feck's avatar
Christoph Feck committed
32
include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
33

34

Christoph Feck's avatar
Christoph Feck committed
35
find_package(X11 REQUIRED)
36
37
38
39
40
41
42
43
44
if(NOT X11_Xt_FOUND)
    message(FATAL_ERROR "Cannot find X11 Xt component (libxt header file X11/Intrinsic.h)")
endif(NOT X11_Xt_FOUND)
if(NOT X11_XTest_FOUND)
    message(FATAL_ERROR "Cannot find X11 XTest component (libxcb-xtest header file X11/extensions/XTest.h)")
endif(NOT X11_XTest_FOUND)

add_subdirectory( doc )
add_subdirectory( kmousetool )
Nicolas Lécureuil's avatar
Nicolas Lécureuil committed
45
46

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)