Warning, /utilities/kfind/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(kfind VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set (KF5_MIN_VERSION "5.89.0")
0012 # ECM setup
0013 find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
0014 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0015 set(QT_REQUIRED_VERSION "5.15.2")
0016 include(KDEInstallDirs)
0017 find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Concurrent)
0018 if (QT_MAJOR_VERSION STREQUAL "6")
0019     find_package(Qt6Core5Compat)
0020 endif()
0021 
0022 include(KDECMakeSettings)
0023 include(KDECompilerSettings NO_POLICY_SCOPE)
0024 include(ECMSetupVersion)
0025 include(ECMInstallIcons)
0026 include(FeatureSummary)
0027 include(ECMAddAppIcon)
0028 include(ECMQtDeclareLoggingCategory)
0029 
0030 set(KFIND_VERSION ${RELEASE_SERVICE_VERSION})
0031 
0032 ecm_setup_version(${KFIND_VERSION} VARIABLE_PREFIX KFIND
0033                         VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/kfind_version.h"
0034 )
0035 
0036 # Build dependencies
0037 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0038     Archive
0039     CoreAddons
0040     FileMetaData
0041     I18n
0042     KIO
0043     WidgetsAddons
0044 )
0045 find_package(KF5DocTools ${KF5_MIN_VERSION})
0046 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0047     "Tools to generate documentation"
0048     TYPE OPTIONAL
0049 )
0050 add_definitions(
0051     -DQT_DISABLE_DEPRECATED_BEFORE=0x050e00
0052     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0053     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900
0054     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0055 )
0056 
0057 add_subdirectory(src)
0058 add_subdirectory(icons)
0059 
0060 ecm_qt_install_logging_categories(EXPORT KFIND FILE kfind.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
0061 
0062 ki18n_install(po)
0063 if (KF5DocTools_FOUND)
0064     kdoctools_install(po)
0065     add_subdirectory(doc)
0066 endif()
0067 
0068 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)