Warning, /frameworks/kded/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 set(KF_VERSION "5.97.0") # handled by release scripts
0004 set(KF_DEP_VERSION "5.97.0") # handled by release scripts
0005 project(KDED VERSION ${KF_VERSION})
0006 
0007 include(FeatureSummary)
0008 find_package(ECM 5.97.0  NO_MODULE)
0009 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules")
0010 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
0011 
0012 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0013 
0014 set(REQUIRED_QT_VERSION 5.15.2)
0015 
0016 include(KDEInstallDirs)
0017 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
0018 include(KDECMakeSettings)
0019 include(KDEGitCommitHooks)
0020 include(ECMDeprecationSettings)
0021 
0022 find_package(Qt${QT_MAJOR_VERSION} "${REQUIRED_QT_VERSION}" CONFIG REQUIRED DBus Widgets)
0023 find_package(KF5Config ${KF_DEP_VERSION} REQUIRED)
0024 find_package(KF5CoreAddons ${KF_DEP_VERSION} REQUIRED)
0025 find_package(KF5Crash ${KF_DEP_VERSION} REQUIRED)
0026 find_package(KF5DBusAddons ${KF_DEP_VERSION} REQUIRED)
0027 find_package(KF5DocTools ${KF_DEP_VERSION})
0028 find_package(KF5Service ${KF_DEP_VERSION} REQUIRED)
0029 
0030 
0031 include(CMakePackageConfigHelpers)
0032 include(ECMQtDeclareLoggingCategory)
0033 include(ECMSetupVersion)
0034 include(ECMMarkNonGuiExecutable)
0035 
0036 ecm_setup_version(
0037   PROJECT
0038   VARIABLE_PREFIX KDED
0039   VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kded_version.h"
0040   PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KDEDConfigVersion.cmake"
0041   SOVERSION 5)
0042 
0043 # We don't install kded_version.h, it's only useful internally
0044 # (given that this framework produces no library)
0045 
0046 ecm_set_disabled_deprecation_versions(
0047     QT 5.15.2
0048     KF 5.95.0
0049     KSERVICE 5.89 # We need KServiceTypeTrader for compatibility plugin loading
0050 )
0051 
0052 if (KF5DocTools_FOUND)
0053     kdoctools_install(po)
0054     add_subdirectory(docs)
0055 endif()
0056 
0057 add_subdirectory(src)
0058 
0059 # Create a Config.cmake and a ConfigVersion.cmake file and install them
0060 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KDED")
0061 
0062 configure_package_config_file(
0063   "${CMAKE_CURRENT_SOURCE_DIR}/KDEDConfig.cmake.in"
0064   "${CMAKE_CURRENT_BINARY_DIR}/KDEDConfig.cmake"
0065   PATH_VARS KDE_INSTALL_DBUSINTERFACEDIR
0066   INSTALL_DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0067 )
0068 
0069 install(FILES
0070   "${CMAKE_CURRENT_BINARY_DIR}/KDEDConfig.cmake"
0071   "${CMAKE_CURRENT_BINARY_DIR}/KDEDConfigVersion.cmake"
0072   DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0073   COMPONENT Devel
0074 )
0075 
0076 install(FILES org.kde.kded5.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0077 
0078 feature_summary(WHAT ALL   FATAL_ON_MISSING_REQUIRED_PACKAGES)
0079 
0080 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)