blob: 8b2fcf431a8f2589e3eecf6396dea1964e9103d2 [file] [log] [blame]
Julian Halleff4b282020-11-23 18:24:12 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7cmake_minimum_required(VERSION 3.16)
8include(../../deployment.cmake REQUIRED)
9
10#-------------------------------------------------------------------------------
11# The CMakeLists.txt for building the ts-demo 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 trusted services.
15#-------------------------------------------------------------------------------
16include(${TS_ROOT}/environments/arm-linux/env.cmake)
17project(trusted-services LANGUAGES CXX C)
18add_executable(ts-demo)
19target_include_directories(ts-demo PRIVATE "${TOP_LEVEL_INCLUDE_DIRS}")
20
21#-------------------------------------------------------------------------------
22# Extend with components that are common across all deployments of
23# ts-demo
24#
25#-------------------------------------------------------------------------------
26include(../ts-demo.cmake REQUIRED)
27
28#-------------------------------------------------------------------------------
29# Define library options and dependencies.
30#
31#-------------------------------------------------------------------------------
32env_set_link_options(TGT ts-demo)
33target_link_libraries(ts-demo PRIVATE stdc++ gcc m)