Gyorgy Szing | 4909180 | 2020-11-24 00:33:09 +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 | |
| 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 |
| 17 | get_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 |
| 20 | set(ENV{TS_ROOT} "${TS_ROOT}") |
| 21 | |
| 22 | # Common utilities used by the build system |
| 23 | include(${TS_ROOT}/tools/cmake/common/Utils.cmake REQUIRED) |
| 24 | include(${TS_ROOT}/tools/cmake/common/AddComponents.cmake REQUIRED) |
| 25 | |
| 26 | # Check build environment requirements are met |
| 27 | ts_verify_build_env() |
| 28 | |
| 29 | # Project wide include directories |
| 30 | set(TOP_LEVEL_INCLUDE_DIRS |
| 31 | "${TS_ROOT}" |
| 32 | "${TS_ROOT}/components" |
| 33 | ) |