blob: 1737976e042b2ec73993c1e06f29bf2e5490f645 [file] [log] [blame]
Julian Halld4071382021-07-07 16:45:53 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7cmake_minimum_required(VERSION 3.16)
8include(../../../deployment.cmake REQUIRED)
9
10# Prevents symbols in the psa-api-test executable overriding symbols with
11# with same name in libts during dyanmic linking performed by the program
12# loader. This avoid psa crypto api symbols provided by the mbedcrypto
13# library from being overridden by the same symbols in the psa-api-test
14# executable.
15set(CMAKE_C_VISIBILITY_PRESET hidden)
16
17#-------------------------------------------------------------------------------
18# The CMakeLists.txt for building the psa-api-test deployment for linux-pc
19#
20# Used for building and running psa arch tests in a native PC enviroment.
21# Tests can be run by running the built executable called "psa-api-test"
22#-------------------------------------------------------------------------------
23include(${TS_ROOT}/environments/linux-pc/env.cmake)
24project(trusted-services LANGUAGES CXX C)
25add_executable(psa-api-test)
26target_include_directories(psa-api-test PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
27
28#-------------------------------------------------------------------------------
29# Extend with components that are common across all deployments of
30# psa-api-test/crypto
31#-------------------------------------------------------------------------------
32include(../crypto-api-test.cmake REQUIRED)