Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

CMakeLists.txt 1.76 KB
Newer Older
1
project(kdeconnect)
2

3
set(KDECONNECT_VERSION_MAJOR 1)
4 5
set(KDECONNECT_VERSION_MINOR 1)
set(KDECONNECT_VERSION_PATCH 0)
6 7
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")

8
cmake_minimum_required(VERSION 2.8.12)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
9

10 11
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
12

13
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
Michael Palimaka's avatar
Michael Palimaka committed
14
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons)
15
find_package(KF5DocTools)
16
find_package(Qca-qt5 2.1.0 REQUIRED)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
17

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
18 19
include_directories(${CMAKE_SOURCE_DIR})

20 21
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)

22
include(KDEInstallDirs)
23
include(KDECompilerSettings NO_POLICY_SCOPE)
24 25 26 27 28
include(KDECMakeSettings)
include(ECMAddTests)
include(ECMSetupVersion)
include(ECMInstallIcons)
include(FeatureSummary)
29

30 31
include(KDEConnectMacros.cmake)

32
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
33

34
include(GenerateExportHeader)
35
include_directories(${CMAKE_CURRENT_BINARY_DIR})
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
36

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
37
add_subdirectory(core)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
38
add_subdirectory(kcm)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
39
add_subdirectory(kcmplugin)
40 41
if(NOT WIN32)
	add_subdirectory(kio)
42
	add_subdirectory(plasmoid)
43
endif()
44
add_subdirectory(icon)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
45 46
add_subdirectory(interfaces)

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
47 48 49 50
option(EXPERIMENTALAPP_ENABLED OFF)
if(EXPERIMENTALAPP_ENABLED)
    add_subdirectory(app)
endif()
51
add_subdirectory(daemon)
52
add_subdirectory(plugins)
53
add_subdirectory(cli)
54
add_subdirectory(indicator)
55
add_subdirectory(fileitemactionplugin)
56 57 58
if(KF5DocTools_FOUND)
    add_subdirectory(doc)
endif()
David Edmundson's avatar
David Edmundson committed
59

Andreas Sturmlechner's avatar
Andreas Sturmlechner committed
60 61 62
if(BUILD_TESTING)
    add_subdirectory(tests)
endif()
63

64
install(FILES org.kde.kdeconnect.kcm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
65
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)