Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame^] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | cmake_minimum_required(VERSION 3.16) |
| 8 | include(../../../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. |
| 15 | set(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 | #------------------------------------------------------------------------------- |
| 23 | include(${TS_ROOT}/environments/linux-pc/env.cmake) |
| 24 | project(trusted-services LANGUAGES CXX C) |
| 25 | add_executable(psa-api-test) |
| 26 | target_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 | #------------------------------------------------------------------------------- |
| 32 | include(../crypto-api-test.cmake REQUIRED) |