Julian Hall | c02fffb | 2020-11-23 18:22:06 +0100 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | if (NOT DEFINED TGT) |
| 8 | message(FATAL_ERROR "mandatory parameter TGT is not defined.") |
| 9 | endif() |
| 10 | |
| 11 | target_sources(${TGT} PRIVATE |
| 12 | "${CMAKE_CURRENT_LIST_DIR}/crypto_client.cpp" |
| 13 | ) |
| 14 | |
| 15 | # The crypto client presents the PSA Crypto API and hence has a dependency on mbedcrypto for functions |
| 16 | # related to setting key attributes. A minimal configuration is provided to allow a minimal library |
| 17 | # to be built. This configuration may be overridden by other components that have their own |
| 18 | # dependency on mbedctupto. |
| 19 | set(MBEDCRYPTO_CONFIG_FILE |
| 20 | "${CMAKE_CURRENT_LIST_DIR}/config_mbed_crypto.h" |
| 21 | CACHE STRING "Configuration file for mbedcrypto") |
| 22 | |