2013-07-02 00:50:32 +01:00
|
|
|
project(kdeconnect)
|
2013-08-21 17:25:44 +01:00
|
|
|
|
2015-02-05 07:52:07 +00:00
|
|
|
set(KDECONNECT_VERSION_MAJOR 0)
|
2015-09-12 21:40:05 +01:00
|
|
|
set(KDECONNECT_VERSION_MINOR 9)
|
2015-02-05 07:52:07 +00:00
|
|
|
set(KDECONNECT_VERSION_PATCH 0)
|
|
|
|
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")
|
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
|
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
|
2014-06-14 15:34:00 +01:00
|
|
|
|
2015-09-07 16:42:37 +01:00
|
|
|
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
|
2015-05-04 23:41:39 +01:00
|
|
|
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes)
|
2015-01-16 05:35:30 +00:00
|
|
|
find_package(Qca-qt5 2.1.0 REQUIRED)
|
2014-11-30 01:52:43 +00:00
|
|
|
find_package(TelepathyQt5 0.9.5)
|
2015-09-11 11:08:41 +01:00
|
|
|
find_package(TelepathyQt5Service 0.9.7)
|
2015-09-11 20:19:13 +01:00
|
|
|
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
|
2014-11-30 01:52:43 +00:00
|
|
|
add_definitions(-DHAVE_TELEPATHY)
|
|
|
|
endif()
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2015-03-10 04:59:36 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
|
|
|
|
2015-02-05 07:52:07 +00:00
|
|
|
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)
|
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(KDECompilerSettings)
|
|
|
|
include(KDECMakeSettings)
|
|
|
|
include(ECMAddTests)
|
|
|
|
include(ECMSetupVersion)
|
|
|
|
include(ECMInstallIcons)
|
|
|
|
include(FeatureSummary)
|
2013-07-04 18:17:22 +01:00
|
|
|
|
2015-03-19 15:36:53 +00:00
|
|
|
include(KDEConnectMacros.cmake)
|
|
|
|
|
2015-04-01 22:40:29 +01:00
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
|
|
|
|
|
2014-06-14 13:31:31 +01:00
|
|
|
include(GenerateExportHeader)
|
2014-09-12 23:49:56 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2014-06-14 14:22:40 +01:00
|
|
|
add_subdirectory(core)
|
2013-06-19 12:29:24 +01:00
|
|
|
add_subdirectory(kcm)
|
2015-03-10 04:59:36 +00:00
|
|
|
add_subdirectory(kcmplugin)
|
2014-01-16 14:32:35 +00:00
|
|
|
add_subdirectory(kio)
|
2014-02-19 20:10:41 +00:00
|
|
|
add_subdirectory(icon)
|
2014-06-14 14:22:40 +01:00
|
|
|
add_subdirectory(interfaces)
|
|
|
|
|
2015-06-13 00:30:38 +01:00
|
|
|
option(EXPERIMENTALAPP_ENABLED OFF)
|
|
|
|
if(EXPERIMENTALAPP_ENABLED)
|
|
|
|
add_subdirectory(app)
|
|
|
|
endif()
|
2015-02-24 06:12:45 +00:00
|
|
|
add_subdirectory(daemon)
|
2014-06-14 15:34:00 +01:00
|
|
|
add_subdirectory(plugins)
|
2014-06-14 14:22:40 +01:00
|
|
|
add_subdirectory(plasmoid)
|
2014-04-01 02:12:31 +01:00
|
|
|
add_subdirectory(cli)
|
2014-06-14 17:45:53 +01:00
|
|
|
add_subdirectory(fileitemactionplugin)
|
2014-11-30 01:52:43 +00:00
|
|
|
|
2015-09-11 20:46:25 +01:00
|
|
|
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
|
2014-11-30 01:52:43 +00:00
|
|
|
add_subdirectory(telepathy-cm)
|
|
|
|
endif()
|
|
|
|
|
2015-09-07 16:42:37 +01:00
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-09-14 12:51:50 +01:00
|
|
|
|
2015-09-15 01:03:31 +01:00
|
|
|
install(PROGRAMS org.kde.kdeconnect.nonplasma.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
2015-09-14 12:51:50 +01:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|