Warning, /network/kio-s3/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: BSD-3-Clause 0002 # SPDX-FileCopyrightText: 2020 Elvis Angelaccio <elvis.angelaccio@kde.org> 0003 0004 cmake_minimum_required(VERSION 3.16) 0005 0006 set(KIO_S3_VERSION 0.9.70) 0007 project(kio-s3 VERSION ${KIO_S3_VERSION}) 0008 0009 set(QT_MIN_VERSION 5.15.2) 0010 set(KF_MIN_VERSION 5.96.0) 0011 0012 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) 0013 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) 0014 0015 include(FeatureSummary) 0016 include(KDEInstallDirs) 0017 include(KDECMakeSettings) 0018 include(KDECompilerSettings NO_POLICY_SCOPE) 0019 include(ECMQtDeclareLoggingCategory) 0020 include(ECMSetupVersion) 0021 0022 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS 0023 Core 0024 Network) 0025 0026 find_package(KF${QT_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS 0027 DocTools 0028 I18n 0029 KIO) 0030 0031 find_package(AWSSDK REQUIRED COMPONENTS 0032 core 0033 s3) 0034 0035 set_package_properties(AWSSDK PROPERTIES DESCRIPTION "the AWS SDK for C++" 0036 URL "https://github.com/aws/aws-sdk-cpp" 0037 TYPE REQUIRED 0038 PURPOSE "Needed to build the S3 KIO worker") 0039 0040 find_package(Qt5Test QUIET) 0041 set_package_properties(Qt5Test PROPERTIES 0042 TYPE OPTIONAL 0043 PURPOSE "Required for building tests.") 0044 0045 if(NOT Qt5Test_FOUND) 0046 set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.") 0047 endif() 0048 0049 ecm_setup_version(PROJECT 0050 VARIABLE_PREFIX S3 0051 VERSION_HEADER s3version.h) 0052 0053 add_definitions(-DQT_NO_URL_CAST_FROM_STRING) 0054 add_definitions(-DQT_STRICT_ITERATORS) 0055 add_definitions(-DTRANSLATION_DOMAIN=\"kio5_s3\") 0056 0057 if(BUILD_TESTING) 0058 add_subdirectory(autotests) 0059 endif() 0060 add_subdirectory(desktop) 0061 add_subdirectory(src) 0062 0063 add_subdirectory(doc) 0064 kdoctools_install(po) 0065 0066 ki18n_install(po) 0067 0068 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)