blob: 41b6a98c5b7527f89bf0ab380cdad818feb4c6b6 [file] [log] [blame]
Julian Hall1911a122021-12-06 15:20:12 +00001#-------------------------------------------------------------------------------
Gabor Toth3a545e42023-11-07 15:17:40 +01002# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
Julian Hall1911a122021-12-06 15:20:12 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#-------------------------------------------------------------------------------
9# The base build file shared between deployments of 'uefi-test' for
10# different environments. Used for running end-to-end service-level tests
11# against SMM service providers that implement UEFI services such as smm
12# variable.
13#-------------------------------------------------------------------------------
14
15#-------------------------------------------------------------------------------
16# Use libts for locating and accessing services. An appropriate version of
17# libts will be imported for the enviroment in which service tests are
18# deployed.
19#-------------------------------------------------------------------------------
20include(${TS_ROOT}/deployments/libts/libts-import.cmake)
Gyorgy Szingec62ea72022-07-20 12:36:52 +000021target_link_libraries(uefi-test PRIVATE libts::ts)
Julian Hall1911a122021-12-06 15:20:12 +000022
23#-------------------------------------------------------------------------------
24# Components that are common accross all deployments
25#
26#-------------------------------------------------------------------------------
27add_components(
28 TARGET "uefi-test"
29 BASE_DIR ${TS_ROOT}
30 COMPONENTS
Julian Hall98656d52022-05-05 11:09:21 +010031 "components/service/uefi/smm_variable/client/cpp"
32 "components/service/uefi/smm_variable/test/service"
Julian Hall1911a122021-12-06 15:20:12 +000033)
34
35#-------------------------------------------------------------------------------
Julian Hall1911a122021-12-06 15:20:12 +000036# Define install content.
37#
38#-------------------------------------------------------------------------------
39if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
40 set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE)
41endif()
42install(TARGETS uefi-test RUNTIME DESTINATION ${TS_ENV}/bin)