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 linux-pc
13#
14#  Used for building and running psa arch tests in a native PC enviroment.
15#  Tests can be run by running the built executable called "psa-iat-api-test".
16#-------------------------------------------------------------------------------
17include(${TS_ROOT}/environments/linux-pc/env.cmake)
18project(psa-iat-api-test LANGUAGES CXX C)
19add_executable(${PROJECT_NAME})
20target_include_directories(${PROJECT_NAME} PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
21
22set(TRACE_PREFIX "PSAIAT" CACHE STRING "Trace prefix")
23add_components(TARGET ${PROJECT_NAME}
24	BASE_DIR ${TS_ROOT}
25	COMPONENTS "environments/linux-pc"
26)
27
28#-------------------------------------------------------------------------------
29#  Extend with components that are common across all deployments of
30#  psa-api-test/initial_attestation
31#-------------------------------------------------------------------------------
32include(../iat-api-test.cmake REQUIRED)
33