Julian Hall | 1911a12 | 2021-12-06 15:20:12 +0000 | [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 | 1911a12 | 2021-12-06 15:20:12 +0000 | [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 | 1911a12 | 2021-12-06 15:20:12 +0000 | [diff] [blame] | 8 | include(../../deployment.cmake REQUIRED) |
| 9 | |
| 10 | #------------------------------------------------------------------------------- |
| 11 | # The CMakeLists.txt for building the uefi-test deployment for arm-linux |
| 12 | # |
| 13 | # Used for building and running service level tests from Linux user-space |
| 14 | # on an Arm platform with real deployments of UEFI SMM services |
| 15 | #------------------------------------------------------------------------------- |
| 16 | include(${TS_ROOT}/environments/arm-linux/env.cmake) |
| 17 | project(trusted-services LANGUAGES CXX C) |
| 18 | add_executable(uefi-test) |
| 19 | target_include_directories(uefi-test PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}") |
| 20 | |
| 21 | add_components( |
| 22 | TARGET "uefi-test" |
| 23 | BASE_DIR ${TS_ROOT} |
| 24 | COMPONENTS |
| 25 | "components/app/test-runner" |
| 26 | ) |
| 27 | |
| 28 | include(${TS_ROOT}/external/CppUTest/CppUTest.cmake) |
| 29 | target_link_libraries(uefi-test PRIVATE CppUTest) |
| 30 | |
| 31 | #------------------------------------------------------------------------------- |
| 32 | # Extend with components that are common across all deployments of |
| 33 | # uefi-test |
| 34 | # |
| 35 | #------------------------------------------------------------------------------- |
| 36 | include(../uefi-test.cmake REQUIRED) |
| 37 | |
| 38 | #------------------------------------------------------------------------------- |
| 39 | # Define library options and dependencies. |
| 40 | # |
| 41 | #------------------------------------------------------------------------------- |
Julian Hall | 1911a12 | 2021-12-06 15:20:12 +0000 | [diff] [blame] | 42 | target_link_libraries(uefi-test PRIVATE stdc++ gcc m) |