blob: 18b83e9bd6b0489879c7d4574989fe473567ca19 [file] [log] [blame]
Julian Hallc02fffb2020-11-23 18:22:06 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7if (NOT DEFINED TGT)
8 message(FATAL_ERROR "mandatory parameter TGT is not defined.")
9endif()
10
11target_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.
19set(MBEDCRYPTO_CONFIG_FILE
20 "${CMAKE_CURRENT_LIST_DIR}/config_mbed_crypto.h"
21 CACHE STRING "Configuration file for mbedcrypto")
22