kdeconnect-kde/CMakeLists.txt

85 lines
2.3 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.0)
project(kdeconnect)
2016-07-22 11:46:45 +01:00
set(KDECONNECT_VERSION_MAJOR 1)
2018-04-08 15:15:46 +01:00
set(KDECONNECT_VERSION_MINOR 3)
set(KDECONNECT_VERSION_PATCH 0)
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")
set(QT_MIN_VERSION "5.7.0")
set(KF5_MIN_VERSION "5.42.0")
2013-06-06 04:57:06 +01:00
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Quick Network)
find_package(KF5 ${KF5_MIN_VERSION}
REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes Notifications KIO KCMUtils
OPTIONAL_COMPONENTS DocTools PulseAudioQt
)
find_package(Qca-qt5 2.1.0 REQUIRED)
find_package(Phonon4Qt5 4.9.0 NO_MODULE)
set_package_properties(Phonon4Qt5 PROPERTIES
DESCRIPTION "Qt-based audio library"
TYPE OPTIONAL
PURPOSE "Required for Find My Device plugin"
)
2013-06-06 04:57:06 +01:00
2015-03-10 04:59:36 +00:00
include_directories(${CMAKE_SOURCE_DIR})
configure_file(kdeconnect-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeconnect-version.h)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMAddTests)
include(ECMSetupVersion)
include(ECMInstallIcons)
include(FeatureSummary)
include(KDEConnectMacros.cmake)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS)
include(GenerateExportHeader)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2013-06-06 04:57:06 +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)
add_subdirectory(plasmoid)
2016-06-20 01:17:51 +01:00
endif()
2014-02-19 20:10:41 +00:00
add_subdirectory(icon)
add_subdirectory(interfaces)
2015-06-13 00:30:38 +01:00
option(EXPERIMENTALAPP_ENABLED OFF)
if(EXPERIMENTALAPP_ENABLED)
add_subdirectory(app)
endif()
add_subdirectory(daemon)
add_subdirectory(plugins)
add_subdirectory(cli)
add_subdirectory(indicator)
add_subdirectory(urlhandler)
add_subdirectory(nautilus-extension)
option(SMSAPP_ENABLED OFF)
if(SMSAPP_ENABLED)
find_package(KF5People REQUIRED)
add_subdirectory(smsapp)
endif()
if(KF5DocTools_FOUND)
add_subdirectory(doc)
endif()
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
install(FILES org.kde.kdeconnect.kcm.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)