blob: 4a6d153b175dc2ae8a21f3a968ace952294bc613 [file] [log] [blame]
#-------------------------------------------------------------------------------
# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#-------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.16)
include(../../deployment.cmake REQUIRED)
#-------------------------------------------------------------------------------
# The CMakeLists.txt for building the ts-service-test deployment for arm-linux
#
# Used for building and running service level tests from Linux user-space
# on an Arm platform with real deployments of trusted services.
#-------------------------------------------------------------------------------
include(${TS_ROOT}/environments/arm-linux/env.cmake)
project(trusted-services LANGUAGES CXX C)
add_executable(ts-service-test)
target_include_directories(ts-service-test PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
#-------------------------------------------------------------------------------
# Extend with components that are common across all deployments of
# ts-service-test
#
#-------------------------------------------------------------------------------
include(../ts-service-test.cmake REQUIRED)
#-------------------------------------------------------------------------------
# Define library options and dependencies.
#
#-------------------------------------------------------------------------------
env_set_link_options(TGT ts-service-test)
target_link_libraries(ts-service-test PRIVATE stdc++ gcc m)