Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Balint Dobszay | 047aea8 | 2022-05-16 14:20:53 +0200 | [diff] [blame] | 2 | # Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
Balint Dobszay | 047aea8 | 2022-05-16 14:20:53 +0200 | [diff] [blame] | 7 | cmake_minimum_required(VERSION 3.18 FATAL_ERROR) |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 8 | include(../../../deployment.cmake REQUIRED) |
Julian Hall | eaa9a67 | 2021-07-12 12:39:13 +0100 | [diff] [blame] | 9 | include(../../psa-api-test-config.cmake REQUIRED) |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 10 | |
| 11 | #------------------------------------------------------------------------------- |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 12 | # The CMakeLists.txt for building the psa-api-test/crypto deployment for |
| 13 | # linux-pc |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 14 | # |
Julian Hall | b57aa0d | 2021-07-13 10:34:59 +0100 | [diff] [blame] | 15 | # Used for building and running psa arch crypto tests in a native PC enviroment. |
Gyorgy Szing | 49bfd5a | 2021-11-23 09:39:53 +0100 | [diff] [blame] | 16 | # Tests can be run by running the built executable called "psa-crypto-api-test" |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 17 | #------------------------------------------------------------------------------- |
| 18 | include(${TS_ROOT}/environments/linux-pc/env.cmake) |
Gyorgy Szing | 49bfd5a | 2021-11-23 09:39:53 +0100 | [diff] [blame] | 19 | project(psa-crypto-api-test LANGUAGES CXX C) |
| 20 | add_executable(${PROJECT_NAME}) |
| 21 | target_include_directories(${PROJECT_NAME} PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}") |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 22 | |
Gabor Toth | 6df91b5 | 2023-05-15 14:17:16 +0200 | [diff] [blame] | 23 | set(TRACE_PREFIX "PSACRYPTO" CACHE STRING "Trace prefix") |
| 24 | add_components(TARGET ${PROJECT_NAME} |
| 25 | BASE_DIR ${TS_ROOT} |
| 26 | COMPONENTS "environments/linux-pc" |
| 27 | ) |
| 28 | |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 29 | #------------------------------------------------------------------------------- |
| 30 | # Extend with components that are common across all deployments of |
| 31 | # psa-api-test/crypto |
| 32 | #------------------------------------------------------------------------------- |
| 33 | include(../crypto-api-test.cmake REQUIRED) |