Warning, /education/kbruch/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
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(kbruch VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION "5.15.0")
0012 set(KF5_MIN_VERSION "5.90.0")
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0015 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} )
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 
0021 include(ECMAddAppIcon)
0022 include(ECMSetupVersion)
0023 include(ECMInstallIcons)
0024 include(FeatureSummary)
0025 
0026 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0027   Core
0028   Widgets
0029 )
0030 
0031 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
0032   Config
0033   CoreAddons
0034   Crash
0035   I18n
0036   WidgetsAddons
0037   XmlGui
0038 )
0039 
0040 find_package(KF5DocTools ${KF5_MIN_VERSION})
0041 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0042     "Tools to generate documentation"
0043     TYPE OPTIONAL
0044 )
0045 add_definitions(
0046     -DQT_DISABLE_DEPRECATED_BEFORE=0x050c00
0047     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0048     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800
0049     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0050 )
0051 
0052 
0053 kde_enable_exceptions()
0054 
0055 add_subdirectory( src )
0056 
0057 ki18n_install(po)
0058 if (KF5DocTools_FOUND)
0059     kdoctools_install(po)
0060     add_subdirectory(doc)
0061 endif()
0062 
0063 install(FILES org.kde.kbruch.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0064 
0065 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)