Julian Hall | eff4b28 | 2020-11-23 18:24:12 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | cmake_minimum_required(VERSION 3.16) |
| 8 | include(../../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 | #------------------------------------------------------------------------------- |
| 16 | include(${TS_ROOT}/environments/arm-linux/env.cmake) |
| 17 | project(trusted-services LANGUAGES CXX C) |
| 18 | add_executable(ts-demo) |
| 19 | target_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 | #------------------------------------------------------------------------------- |
| 26 | include(../ts-demo.cmake REQUIRED) |
| 27 | |
| 28 | #------------------------------------------------------------------------------- |
| 29 | # Define library options and dependencies. |
| 30 | # |
| 31 | #------------------------------------------------------------------------------- |
| 32 | env_set_link_options(TGT ts-demo) |
| 33 | target_link_libraries(ts-demo PRIVATE stdc++ gcc m) |