1#------------------------------------------------------------------------------- 2# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7cmake_minimum_required(VERSION 3.18 FATAL_ERROR) 8include(../../../deployment.cmake REQUIRED) 9include(../../psa-api-test-config.cmake REQUIRED) 10 11#------------------------------------------------------------------------------- 12# The CMakeLists.txt for building the psa-api-test deployment for arm-linux 13# 14# Used for building and running psa arch tests on an Arm based Linux device 15#------------------------------------------------------------------------------- 16include(${TS_ROOT}/environments/arm-linux/env.cmake) 17project(psa-iat-api-test LANGUAGES CXX C) 18add_executable(${PROJECT_NAME}) 19target_include_directories(${PROJECT_NAME} PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}") 20 21set(TRACE_PREFIX "PSAIAT" CACHE STRING "Trace prefix") 22add_components(TARGET ${PROJECT_NAME} 23 BASE_DIR ${TS_ROOT} 24 COMPONENTS 25 "components/common/trace" 26 "environments/arm-linux" 27) 28 29#------------------------------------------------------------------------------- 30# Extend with components that are common across all deployments of 31# psa-api-test/initial_attestation 32#------------------------------------------------------------------------------- 33include(../iat-api-test.cmake REQUIRED) 34 35#------------------------------------------------------------------------------- 36# Linker option to enable repeated searches for undefined references. 37# Required to resolve dependencies between arch-test and mbedcrypto libraries. 38#------------------------------------------------------------------------------- 39target_link_options(${PROJECT_NAME} PRIVATE 40 -Wl,--start-group 41 ) 42