Warning, /system/kcron/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required (VERSION 3.16.0 FATAL_ERROR)
0002 project(kcron)
0003 
0004 set (QT_MIN_VERSION "5.15.2")
0005 set (KF5_MIN_VERSION "5.92.0")
0006 
0007 find_package (ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0008 set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0009 
0010 add_definitions(-DTRANSLATION_DOMAIN="kcron")
0011 
0012 include(KDEInstallDirs)
0013 include(KDECompilerSettings NO_POLICY_SCOPE)
0014 include(KDECMakeSettings)
0015 include(ECMQtDeclareLoggingCategory)
0016 include(KDEGitCommitHooks)
0017 include(KDEClangFormat)
0018 include(ECMDeprecationSettings)
0019 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
0020 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0021 
0022 find_package (Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0023     Core
0024     Widgets
0025     PrintSupport
0026 )
0027 if (QT_MAJOR_VERSION STREQUAL "6")
0028     find_package(Qt6Core5Compat)
0029 endif()
0030 
0031 find_package(KF5 REQUIRED COMPONENTS
0032     ConfigWidgets
0033     CoreAddons
0034     Auth
0035     I18n
0036     KIO
0037 )
0038 find_package(KF5DocTools ${KF5_MIN_VERSION})
0039 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0040     "Tools to generate documentation"
0041     TYPE OPTIONAL
0042 )
0043 
0044 ecm_set_disabled_deprecation_versions(QT 5.15.2
0045     KF 5.92
0046 )
0047 
0048 
0049 add_subdirectory(src) 
0050 
0051 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kcron.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0052 
0053 ecm_qt_install_logging_categories(
0054         EXPORT KCRON
0055         FILE kcron.categories
0056         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0057         )
0058 
0059 
0060 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0061 ki18n_install(po)
0062 if (KF5DocTools_FOUND)
0063     kdoctools_install(po)
0064     add_subdirectory(doc)
0065 endif()
0066 
0067 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)