##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftCrypto open source project ## ## Copyright (c) 2022 Apple Inc. and the SwiftCrypto project authors ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information ## See CONTRIBUTORS.md for the list of SwiftCrypto project authors ## ## SPDX-License-Identifier: Apache-2.0 ## ##===----------------------------------------------------------------------===## add_library(CryptoBoringWrapper STATIC "AEAD/BoringSSLAEAD.swift" "CryptoKitErrors_boring.swift") target_include_directories(CryptoBoringWrapper PUBLIC $ $) target_link_libraries(CryptoBoringWrapper PUBLIC $<$>:Foundation> CCryptoBoringSSL CCryptoBoringSSLShims) set_target_properties(CryptoBoringWrapper PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) set_property(GLOBAL APPEND PROPERTY SWIFT_CRYPTO_EXPORTS CryptoBoringWrapper)