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 "24") 0005 set(RELEASE_SERVICE_VERSION_MINOR "04") 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 "6.5.0") 0010 set(KF_MIN_VERSION "5.240.0") 0011 set(KDE_COMPILERSETTINGS_LEVEL "5.82") 0012 project(khangman VERSION ${RELEASE_SERVICE_VERSION}) 0013 0014 find_package(ECM ${KF_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 include(ECMDeprecationSettings) 0025 0026 include(FeatureSummary) 0027 set(CMAKE_CXX_STANDARD 17) 0028 set(CMAKE_CXX_STANDARD_REQUIRED TRUE) 0029 0030 0031 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Qml Quick QuickWidgets Svg) 0032 0033 qt_policy(SET QTP0001 NEW) 0034 0035 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS 0036 I18n 0037 Crash 0038 Completion 0039 Config 0040 CoreAddons 0041 ConfigWidgets 0042 NewStuff 0043 Notifications 0044 KIO 0045 ) 0046 find_package(KF6DocTools ${KF_MIN_VERSION}) 0047 set_package_properties(KF6DocTools PROPERTIES DESCRIPTION 0048 "Tools to generate documentation" 0049 TYPE OPTIONAL 0050 ) 0051 find_package(LibKEduVocDocument REQUIRED) 0052 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) 0053 ecm_set_disabled_deprecation_versions(QT 5.15.2 KF 5.101.0) 0054 0055 add_subdirectory( src ) 0056 0057 add_subdirectory( themes ) 0058 add_subdirectory( fonts ) 0059 0060 add_subdirectory( icons ) 0061 0062 add_subdirectory( languages ) 0063 0064 ki18n_install(po) 0065 if (KF6DocTools_FOUND) 0066 kdoctools_install(po) 0067 add_subdirectory(doc) 0068 endif() 0069 0070 install(FILES org.kde.khangman.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0071 0072 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)