blob: b99604a2deac931b2a23c27a241a38d74528efc8 [file] [log] [blame]
Julian Halld4071382021-07-07 16:45:53 +01001#-------------------------------------------------------------------------------
Balint Dobszay047aea82022-05-16 14:20:53 +02002# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
Julian Halld4071382021-07-07 16:45:53 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
Balint Dobszay047aea82022-05-16 14:20:53 +02007cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
Julian Halld4071382021-07-07 16:45:53 +01008include(../../../deployment.cmake REQUIRED)
Julian Halleaa9a672021-07-12 12:39:13 +01009include(../../psa-api-test-config.cmake REQUIRED)
Julian Halld4071382021-07-07 16:45:53 +010010
11#-------------------------------------------------------------------------------
Julian Hallb57aa0d2021-07-13 10:34:59 +010012# The CMakeLists.txt for building the psa-api-test/crypto deployment for
13# linux-pc
Julian Halld4071382021-07-07 16:45:53 +010014#
Julian Hallb57aa0d2021-07-13 10:34:59 +010015# Used for building and running psa arch crypto tests in a native PC enviroment.
Gyorgy Szing49bfd5a2021-11-23 09:39:53 +010016# Tests can be run by running the built executable called "psa-crypto-api-test"
Julian Halld4071382021-07-07 16:45:53 +010017#-------------------------------------------------------------------------------
18include(${TS_ROOT}/environments/linux-pc/env.cmake)
Gyorgy Szing49bfd5a2021-11-23 09:39:53 +010019project(psa-crypto-api-test LANGUAGES CXX C)
20add_executable(${PROJECT_NAME})
21target_include_directories(${PROJECT_NAME} PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
Julian Halld4071382021-07-07 16:45:53 +010022
23#-------------------------------------------------------------------------------
24# Extend with components that are common across all deployments of
25# psa-api-test/crypto
26#-------------------------------------------------------------------------------
27include(../crypto-api-test.cmake REQUIRED)