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.88 KB
Newer Older
1
project(kdeconnect)
2

3
set(KDECONNECT_VERSION_MAJOR 0)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
4
set(KDECONNECT_VERSION_MINOR 9)
5 6 7
set(KDECONNECT_VERSION_PATCH 0)
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

Andreas Sturmlechner's avatar
Andreas Sturmlechner committed
13
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
14
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes)
15
find_package(Qca-qt5 2.1.0 REQUIRED)
David Edmundson's avatar
David Edmundson committed
16
find_package(TelepathyQt5 0.9.5)
17
find_package(TelepathyQt5Service 0.9.7)
18
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
David Edmundson's avatar
David Edmundson committed
19 20
    add_definitions(-DHAVE_TELEPATHY)
endif()
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
21

Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
22 23
include_directories(${CMAKE_SOURCE_DIR})

24 25
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)

26 27 28 29 30 31 32
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
include(ECMAddTests)
include(ECMSetupVersion)
include(ECMInstallIcons)
include(FeatureSummary)
33

34 35
include(KDEConnectMacros.cmake)

36 37
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)

38
include(GenerateExportHeader)
39
include_directories(${CMAKE_CURRENT_BINARY_DIR})
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
40

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
41
add_subdirectory(core)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
42
add_subdirectory(kcm)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
43
add_subdirectory(kcmplugin)
44
add_subdirectory(kio)
45
add_subdirectory(icon)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
46 47
add_subdirectory(interfaces)

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

58
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
David Edmundson's avatar
David Edmundson committed
59 60 61
    add_subdirectory(telepathy-cm)
endif()

Andreas Sturmlechner's avatar
Andreas Sturmlechner committed
62 63 64
if(BUILD_TESTING)
    add_subdirectory(tests)
endif()
65

66
install(PROGRAMS org.kde.kdeconnect.nonplasma.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
67
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)