blob: 6543318f43ce2f27640788dd1ad422f12205509e [file] [log] [blame]
Gyorgy Szing49091802020-11-24 00:33:09 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8#[===[.rst:
9 The base deployment CMake file
10 ------------------------------
11
12 Contains common CMake definitions that are used by concrete deployments.
13 This file should be included first by a concrete deployment's CMakeLists.txt.
14#]===]
15
16# Sets TS-ROOT which is used as the reference directory for everything contained within the project
17get_filename_component(TS_ROOT "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE CACHE PATH "Trusted Services root directory.")
18
19# Replicate TS_ROOT as environment variable to allow access from child CMake contexts
20set(ENV{TS_ROOT} "${TS_ROOT}")
21
22# Common utilities used by the build system
23include(${TS_ROOT}/tools/cmake/common/Utils.cmake REQUIRED)
24include(${TS_ROOT}/tools/cmake/common/AddComponents.cmake REQUIRED)
25
26# Check build environment requirements are met
27ts_verify_build_env()
28
29# Project wide include directories
30set(TOP_LEVEL_INCLUDE_DIRS
31 "${TS_ROOT}"
32 "${TS_ROOT}/components"
33 )