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

0001 cmake_minimum_required(VERSION 3.16.0 FATAL_ERROR)
0002 
0003 # KDE Application Version, managed by release script
0004 set(RELEASE_SERVICE_VERSION_MAJOR "24")
0005 set(RELEASE_SERVICE_VERSION_MINOR "04")
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(kbackup VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION "6.5.0")
0012 set(KF_MIN_VERSION "5.240.0")
0013 
0014 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
0015 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0016 
0017 add_definitions(-DTRANSLATION_DOMAIN="kbackup" -DKBACKUP_VERSION="${RELEASE_SERVICE_VERSION}")
0018 
0019 include(KDEInstallDirs)
0020 include(KDECompilerSettings NO_POLICY_SCOPE)
0021 include(KDECMakeSettings)
0022 include(ECMInstallIcons)
0023 include(FeatureSummary)
0024 include(ECMDeprecationSettings)
0025 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0026     Core
0027     Widgets
0028 )
0029 find_package(Qt6Core5Compat)
0030 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS
0031     GuiAddons
0032     Notifications
0033     I18n
0034     KIO
0035     XmlGui
0036     IconThemes
0037     Archive
0038     WidgetsAddons
0039     StatusNotifierItem
0040 )
0041 find_package(KF6DocTools ${KF_MIN_VERSION})
0042 set_package_properties(KF6DocTools PROPERTIES DESCRIPTION
0043     "Tools to generate documentation"
0044     TYPE OPTIONAL
0045 )
0046 ecm_set_disabled_deprecation_versions(QT 6.6.0  KF 5.240.0)
0047 
0048 find_package(LibArchive REQUIRED)
0049 
0050 find_package(SharedMimeInfo REQUIRED)
0051 
0052 add_subdirectory(src)
0053 
0054 ki18n_install(po)
0055 if (KF6DocTools_FOUND)
0056     kdoctools_install(po)
0057     add_subdirectory(doc)
0058 endif()
0059 
0060 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)