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