Warning, /frameworks/kquickcharts/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 0003 set(KF_VERSION "6.0.0") # handled by release scripts 0004 set(KF_DEP_VERSION "5.249.0") # handled by release scripts 0005 0006 project(KQuickCharts VERSION ${KF_VERSION}) 0007 0008 include(FeatureSummary) 0009 find_package(ECM 5.249.0 NO_MODULE) 0010 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") 0011 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) 0012 0013 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) 0014 0015 include(KDEInstallDirs) 0016 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) 0017 include(KDECMakeSettings) 0018 include(KDEGitCommitHooks) 0019 0020 include(ECMGenerateExportHeader) 0021 0022 include(ECMAddTests) 0023 include(ECMSetupVersion) 0024 include(ECMQtDeclareLoggingCategory) 0025 include(ECMQmlModule) 0026 include(ECMDeprecationSettings) 0027 0028 option(BUILD_EXAMPLES "Build example applications" OFF) 0029 0030 set(REQUIRED_QT_VERSION 6.5.0) 0031 find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Qml Quick QuickControls2 ShaderTools) 0032 0033 set(EXCLUDE_DEPRECATED_BEFORE_AND_AT 0 CACHE STRING "Control the range of deprecated API excluded from the build [default=0].") 0034 0035 ecm_set_disabled_deprecation_versions( 0036 QT 6.2.0 0037 ) 0038 0039 ecm_setup_version( 0040 PROJECT 0041 VARIABLE_PREFIX KF6QuickCharts 0042 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/quickcharts_version.h" 0043 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF6QuickChartsConfigVersion.cmake" 0044 SOVERSION 1 0045 ) 0046 0047 add_subdirectory(controls) 0048 add_subdirectory(src) 0049 0050 if(BUILD_EXAMPLES) 0051 add_subdirectory(examples) 0052 endif() 0053 0054 if(BUILD_TESTING) 0055 add_subdirectory(autotests) 0056 endif() 0057 0058 configure_package_config_file( 0059 "KF6QuickChartsConfig.cmake.in" 0060 "KF6QuickChartsConfig.cmake" 0061 INSTALL_DESTINATION ${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6QuickCharts 0062 ) 0063 0064 install(FILES 0065 "${CMAKE_CURRENT_BINARY_DIR}/KF6QuickChartsConfig.cmake" 0066 "${CMAKE_CURRENT_BINARY_DIR}/KF6QuickChartsConfigVersion.cmake" 0067 DESTINATION ${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6QuickCharts 0068 COMPONENT Devel 0069 ) 0070 0071 include(ECMFeatureSummary) 0072 ecm_feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0073 0074 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)