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