blob: 93ade3b7aeada4230ea1d1936c2e0f2af7b7ad19 [file] [log] [blame]
Julian Halldd296222021-05-27 15:31:32 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#-------------------------------------------------------------------------------
9# Define test suite to build. Used by the psa_arch_tests external component
10# to configure what test suite gets built.
11#-------------------------------------------------------------------------------
12set(TS_ARCH_TEST_SUITE CRYPTO CACHE STRING "Arch test suite")
13
14#-------------------------------------------------------------------------------
15# Crypto specific components
16#
17#-------------------------------------------------------------------------------
18
19# Configuration for mbedcrypto
20set(MBEDTLS_USER_CONFIG_FILE
21 "${TS_ROOT}/components/service/crypto/client/cpp/config_mbedtls_user.h"
22 CACHE STRING "Configuration file for mbedcrypto")
23
24# Mbed TLS provides libmbedcrypto
25include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake)
26target_link_libraries(ts-arch-test PRIVATE mbedcrypto)
27
28# Export psa crypto API
29list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE})
30
31#-------------------------------------------------------------------------------
32# Extend with components that are common across all deployments of
33# ts-arch-test
34#-------------------------------------------------------------------------------
35include(../../ts-arch-test.cmake REQUIRED)