2013-07-02 00:50:32 +01:00
|
|
|
project(kdeconnect)
|
2013-08-21 17:25:44 +01:00
|
|
|
|
2016-07-22 11:46:45 +01:00
|
|
|
set(KDECONNECT_VERSION_MAJOR 1)
|
2017-09-18 19:13:54 +01:00
|
|
|
set(KDECONNECT_VERSION_MINOR 2)
|
2018-01-16 21:53:07 +00:00
|
|
|
set(KDECONNECT_VERSION_PATCH 1)
|
2015-02-05 07:52:07 +00:00
|
|
|
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)
|
2018-01-22 09:34:38 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
|
2014-06-14 15:34:00 +01:00
|
|
|
|
2017-07-24 15:16:30 +01:00
|
|
|
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
|
2015-03-01 20:17:46 +00:00
|
|
|
|
2018-01-16 19:41:00 +00:00
|
|
|
find_package(KF5 5.42.0 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons)
|
2015-10-19 02:25:17 +01:00
|
|
|
find_package(KF5DocTools)
|
2015-01-16 05:35:30 +00:00
|
|
|
find_package(Qca-qt5 2.1.0 REQUIRED)
|
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)
|
2016-01-28 14:01:29 +00:00
|
|
|
include(KDECompilerSettings NO_POLICY_SCOPE)
|
2014-06-16 19:02:07 +01:00
|
|
|
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)
|
|
|
|
|
2016-06-21 19:19:14 +01:00
|
|
|
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
|
2015-04-01 22:40:29 +01:00
|
|
|
|
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)
|
2016-06-20 01:17:51 +01:00
|
|
|
if(NOT WIN32)
|
|
|
|
add_subdirectory(kio)
|
2016-11-23 23:21:25 +00:00
|
|
|
add_subdirectory(plasmoid)
|
2016-06-20 01:17:51 +01:00
|
|
|
endif()
|
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-04-01 02:12:31 +01:00
|
|
|
add_subdirectory(cli)
|
2016-11-23 16:49:41 +00:00
|
|
|
add_subdirectory(indicator)
|
2014-06-14 17:45:53 +01:00
|
|
|
add_subdirectory(fileitemactionplugin)
|
2017-06-06 16:48:30 +01:00
|
|
|
add_subdirectory(urlhandler)
|
2015-10-19 02:25:17 +01:00
|
|
|
if(KF5DocTools_FOUND)
|
|
|
|
add_subdirectory(doc)
|
|
|
|
endif()
|
2014-11-30 01:52:43 +00:00
|
|
|
|
2015-09-07 16:42:37 +01:00
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-09-14 12:51:50 +01:00
|
|
|
|
2016-09-16 15:53:51 +01:00
|
|
|
install(FILES org.kde.kdeconnect.kcm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
|
2015-09-14 12:51:50 +01:00
|
|
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|