Warning, /libraries/futuresql/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert <jbb@kaidan.im> 0002 # 0003 # SPDX-License-Identifier: BSD-2-Clause 0004 0005 cmake_minimum_required(VERSION 3.19) 0006 0007 project(futuresql LANGUAGES CXX VERSION "0.1.0") 0008 0009 option(BUILD_EXAMPLES "Build examples" OFF) 0010 option(BUILD_TESTING "Build tests" ON) 0011 0012 set(CMAKE_CXX_STANDARD 20) 0013 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0014 set(CMAKE_INCLUDE_CURRENT_DIR ON) 0015 set(CMAKE_INCLUDE_CURRENT_BINARY_DIR ON) 0016 0017 set(REQUIRED_QT_VERSION 5.15.2) 0018 0019 find_package(ECM 5.93.0 REQUIRED NO_MODULE) 0020 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0021 0022 include(FeatureSummary) 0023 include(CTest) 0024 include(KDEInstallDirs) 0025 include(KDECMakeSettings) 0026 include(KDECompilerSettings) 0027 include(ECMSetupVersion) 0028 include(ECMGenerateExportHeader) 0029 include(ECMGenerateHeaders) 0030 include(ECMAddTests) 0031 0032 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core Sql) 0033 0034 add_subdirectory(src) 0035 if(BUILD_TESTING OR BUILD_EXAMPLES) 0036 find_package(QCoro${QT_MAJOR_VERSION} REQUIRED COMPONENTS Core) 0037 qcoro_enable_coroutines() 0038 endif() 0039 0040 if(BUILD_TESTING) 0041 find_package(Qt${QT_MAJOR_VERSION}Test REQUIRED) 0042 add_subdirectory(tests) 0043 endif() 0044 if(BUILD_EXAMPLES) 0045 add_subdirectory(examples) 0046 endif() 0047 0048 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)