afd4bce57e
If we fully overwrite the path, then other directories which may have been provided via CMAKE_PREFIX_PATH don't get searched. This causes breakages on the Windows CI as CMake, QCA and ECM are all installed in different prefixes. The existing code will capture items 1 and 3 here, meaning QCA won't be found. This problem doesn't show up on FreeBSD and Linux as CMake and QCA are in the same install prefix
67 lines
1.8 KiB
CMake
67 lines
1.8 KiB
CMake
project(kdeconnect)
|
|
|
|
set(KDECONNECT_VERSION_MAJOR 1)
|
|
set(KDECONNECT_VERSION_MINOR 2)
|
|
set(KDECONNECT_VERSION_PATCH 1)
|
|
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")
|
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
find_package(ECM 0.0.9 REQUIRED NO_MODULE)
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|
|
|
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
|
|
|
|
find_package(KF5 5.42.0 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons)
|
|
find_package(KF5DocTools)
|
|
find_package(Qca-qt5 2.1.0 REQUIRED)
|
|
|
|
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})
|
|
|
|
add_subdirectory(core)
|
|
add_subdirectory(kcm)
|
|
add_subdirectory(kcmplugin)
|
|
if(NOT WIN32)
|
|
add_subdirectory(kio)
|
|
add_subdirectory(plasmoid)
|
|
endif()
|
|
add_subdirectory(icon)
|
|
add_subdirectory(interfaces)
|
|
|
|
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(fileitemactionplugin)
|
|
add_subdirectory(urlhandler)
|
|
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)
|