Warning, /education/khangman/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 set(QT_MIN_VERSION "5.15.2")
0010 set(KF5_MIN_VERSION "5.90.0")
0011 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0012 project(khangman VERSION ${RELEASE_SERVICE_VERSION})
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED)
0015 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 include(ECMInstallIcons)
0021 include(GenerateExportHeader)
0022 include(ECMAddAppIcon)
0023 include(ECMSetupVersion)
0024 
0025 include(FeatureSummary)
0026 set(CMAKE_CXX_STANDARD 17)
0027 set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
0028 
0029 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Qml Quick QuickWidgets Svg)
0030 
0031 
0032 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0033     I18n
0034     Crash
0035     Completion
0036     Config
0037     CoreAddons
0038     ConfigWidgets
0039     NewStuff
0040     Notifications
0041     XmlGui
0042     KIO
0043 )
0044 find_package(KF5DocTools ${KF5_MIN_VERSION})
0045 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0046     "Tools to generate documentation"
0047     TYPE OPTIONAL
0048 )
0049 find_package(LibKEduVocDocument REQUIRED)
0050 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0051 
0052 
0053 add_subdirectory( src )
0054 
0055 add_subdirectory( themes )
0056 add_subdirectory( fonts )
0057 
0058 add_subdirectory( icons )
0059 
0060 add_subdirectory( languages )
0061 
0062 ki18n_install(po)
0063 if (KF5DocTools_FOUND)
0064     kdoctools_install(po)
0065     add_subdirectory(doc)
0066 endif()
0067 
0068 install(FILES org.kde.khangman.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0069 
0070 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)