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 "22")
0006 set(RELEASE_SERVICE_VERSION_MINOR "08")
0007 set(RELEASE_SERVICE_VERSION_MICRO "1")
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 
0032 # Load the frameworks we need
0033 
0034 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0035   Core
0036   Svg
0037   Network
0038   Test
0039   Widgets
0040 )
0041 find_package(Phonon4Qt${QT_MAJOR_VERSION} REQUIRED)
0042 
0043 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0044   Crash
0045   DocTools
0046   I18n
0047   NewStuff
0048   WidgetsAddons
0049   ConfigWidgets
0050   CoreAddons
0051 )
0052 
0053 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${PHONON_INCLUDE_DIR})
0054 
0055 
0056 ecm_optional_add_subdirectory( doc )
0057 ecm_optional_add_subdirectory( src )
0058 ecm_optional_add_subdirectory( pics )
0059 ecm_optional_add_subdirectory( data )
0060 ecm_optional_add_subdirectory( sounds )
0061 ecm_optional_add_subdirectory( icons )
0062 ecm_optional_add_subdirectory( themes )
0063 ecm_optional_add_subdirectory( tests )
0064 
0065 ki18n_install(po)
0066 if (KF5DocTools_FOUND)
0067     kdoctools_install(po)
0068 endif()
0069 install(FILES org.kde.klettres.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0070 
0071 ecm_qt_install_logging_categories(EXPORT KLETTRES FILE klettres.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
0072 
0073 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)