Warning, /utilities/kdf/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
0002 
0003 # KDE Application Version, managed by release script
0004 set (RELEASE_SERVICE_VERSION_MAJOR "22")
0005 set (RELEASE_SERVICE_VERSION_MINOR "11")
0006 set (RELEASE_SERVICE_VERSION_MICRO "70")
0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(kdf VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 if(NOT UNIX)
0012   message(FATAL_ERROR "kdf is only supposed to be built on Unix platforms.")
0013 endif(NOT UNIX)
0014 
0015 set (QT_MIN_VERSION "5.15.2")
0016 set (KF5_MIN_VERSION "5.92.0")
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
0019 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
0020 
0021 include(ECMGenerateHeaders)
0022 include(ECMInstallIcons)
0023 include(ECMQtDeclareLoggingCategory)
0024 include(ECMSetupVersion)
0025 include(GenerateExportHeader)
0026 include(FeatureSummary)
0027 include(KDEInstallDirs)
0028 include(KDECMakeSettings)
0029 include(KDECompilerSettings NO_POLICY_SCOPE)
0030 include(ECMDeprecationSettings)
0031 
0032 
0033 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KDF
0034                   VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kdf_version.h"
0035 )
0036 
0037 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KDFPRIVATE
0038     SOVERSION ${RELEASE_SERVICE_VERSION_MAJOR}
0039 )
0040 
0041 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0042     Core
0043     Gui
0044     Widgets
0045 )
0046 
0047 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
0048     ConfigWidgets
0049     CoreAddons
0050     I18n
0051     IconThemes
0052     KIO
0053     KCMUtils
0054     Notifications
0055     WidgetsAddons
0056     XmlGui
0057 )
0058 find_package(KF5DocTools ${KF5_MIN_VERSION})
0059 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0060     "Tools to generate documentation"
0061     TYPE OPTIONAL
0062 )
0063 
0064 ecm_set_disabled_deprecation_versions(QT 5.15.2
0065     KF 5.92
0066 )
0067 
0068 if (CMAKE_UNITY_BUILD)
0069         add_definitions(-DCMAKE_UNITY_BUILD)
0070 endif()
0071 
0072 add_subdirectory(desktop)
0073 add_subdirectory(pics)
0074 add_subdirectory(src)
0075 ecm_qt_install_logging_categories(
0076         EXPORT KDF
0077         FILE kdf.categories
0078         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0079         )
0080 ki18n_install(po)
0081 if(KF5DocTools_FOUND)
0082     kdoctools_install(po)
0083     add_subdirectory(doc)
0084 endif()
0085 
0086 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
0087