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

0001 #minimum requirements
0002 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
0003 
0004 # KDE Application Version, managed by release script
0005 set(RELEASE_SERVICE_VERSION_MAJOR "23")
0006 set(RELEASE_SERVICE_VERSION_MINOR "03")
0007 set(RELEASE_SERVICE_VERSION_MICRO "70")
0008 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0009 
0010 project(klettres VERSION ${RELEASE_SERVICE_VERSION})
0011 
0012 set(QT_MIN_VERSION "5.15.0")
0013 set(KF5_MIN_VERSION "5.90.0")
0014 
0015 # we need some parts of the ECM CMake helpers
0016 find_package (ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0017 set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0018 
0019 include(KDEInstallDirs)
0020 include(KDECMakeSettings)
0021 include(KDECompilerSettings NO_POLICY_SCOPE)
0022 
0023 include(ECMOptionalAddSubdirectory)
0024 include(CMakePackageConfigHelpers)
0025 include(ECMInstallIcons)
0026 
0027 include(ECMAddTests)
0028 include(ECMAddAppIcon)
0029 include(ECMQtDeclareLoggingCategory)
0030 include(ECMSetupVersion)
0031 include(ECMDeprecationSettings)
0032 
0033 # Load the frameworks we need
0034 
0035 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0036   Core
0037   Svg
0038   Network
0039   Test
0040   Widgets
0041 )
0042 find_package(Phonon4Qt${QT_MAJOR_VERSION} REQUIRED)
0043 
0044 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0045   Crash
0046   DocTools
0047   I18n
0048   NewStuff
0049   WidgetsAddons
0050   ConfigWidgets
0051   CoreAddons
0052 )
0053 
0054 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${PHONON_INCLUDE_DIR})
0055 ecm_set_disabled_deprecation_versions(QT 5.15.2
0056      KF 5.101.0
0057     )
0058 
0059 
0060 ecm_optional_add_subdirectory( doc )
0061 ecm_optional_add_subdirectory( src )
0062 ecm_optional_add_subdirectory( pics )
0063 ecm_optional_add_subdirectory( data )
0064 ecm_optional_add_subdirectory( sounds )
0065 ecm_optional_add_subdirectory( icons )
0066 ecm_optional_add_subdirectory( themes )
0067 ecm_optional_add_subdirectory( tests )
0068 
0069 ki18n_install(po)
0070 if (KF5DocTools_FOUND)
0071     kdoctools_install(po)
0072 endif()
0073 install(FILES org.kde.klettres.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0074 
0075 ecm_qt_install_logging_categories(EXPORT KLETTRES FILE klettres.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
0076 
0077 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)