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

3 4 5 6 7
set(KDECONNECT_VERSION_MAJOR 0)
set(KDECONNECT_VERSION_MINOR 8)
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

13
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick Test)
14
find_package(KF5 REQUIRED COMPONENTS I18n KIO ConfigWidgets DBusAddons KCMUtils IconThemes)
15
find_package(Qca-qt5 2.1.0 REQUIRED)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
16

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

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

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

29 30
include(KDEConnectMacros.cmake)

31
include(GenerateExportHeader)
32
include_directories(${CMAKE_CURRENT_BINARY_DIR})
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
33

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
34
add_subdirectory(core)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
35
add_subdirectory(kcm)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
36
add_subdirectory(kcmplugin)
37
add_subdirectory(kio)
38
add_subdirectory(icon)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
39 40
add_subdirectory(interfaces)

41
add_subdirectory(daemon)
42
add_subdirectory(plugins)
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
43
add_subdirectory(plasmoid)
44
add_subdirectory(cli)
45
add_subdirectory(fileitemactionplugin)
Albert Vaca Cintora's avatar
Albert Vaca Cintora committed
46

47
add_subdirectory(tests)
48 49

install(PROGRAMS kdeconnect-non-plasma.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})