Warning, /utilities/kookbook/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 0003 project(kookbook) 0004 0005 set(QT_MIN_VERSION "5.15.2") 0006 set(KF_MIN_VERSION "5.92.0") 0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82.0") 0008 0009 find_package(ECM ${KF_MIN_VERSION}) 0010 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) 0011 0012 include(KDEInstallDirs) 0013 include(KDECompilerSettings NO_POLICY_SCOPE) 0014 include(KDECMakeSettings) 0015 include(ECMInstallIcons) 0016 include(ECMAddAppIcon) 0017 include(ECMAddTests) 0018 include(ECMDeprecationSettings) 0019 if (QT_MAJOR_VERSION STREQUAL "6") 0020 set(QT_REQUIRED_VERSION "6.4.0") 0021 set(KF_MIN_VERSION "5.240.0") 0022 set(KF_MAJOR_VERSION "6") 0023 else() 0024 set(KF_MAJOR_VERSION "5") 0025 endif() 0026 0027 set(CMAKE_CXX_STANDARD 17) 0028 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0029 set(CMAKE_CXX_EXTENSIONS OFF) 0030 0031 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VER} CONFIG REQUIRED COMPONENTS Widgets PrintSupport Qml) 0032 0033 ecm_set_disabled_deprecation_versions(QT 6.4 0034 KF 5.102 0035 ) 0036 0037 add_subdirectory(src) 0038 add_subdirectory(autotests) 0039 add_subdirectory(converter)