Tamas Ban | b881bea | 2020-11-04 16:18:36 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | cmake_minimum_required(VERSION 3.15) |
| 9 | |
| 10 | add_library(tfm_fih STATIC) |
| 11 | |
| 12 | target_sources(tfm_fih |
| 13 | PRIVATE |
| 14 | src/fih.c |
| 15 | ) |
| 16 | |
| 17 | target_include_directories(tfm_fih |
| 18 | PUBLIC |
| 19 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> |
| 20 | ) |
| 21 | |
| 22 | target_link_libraries(tfm_fih |
| 23 | PRIVATE |
| 24 | platform_s |
| 25 | ) |
| 26 | |
| 27 | target_compile_definitions(tfm_fih |
| 28 | PUBLIC |
| 29 | TFM_FIH_PROFILE_${TFM_FIH_PROFILE} |
| 30 | $<$<NOT:$<STREQUAL:${TFM_FIH_PROFILE},OFF>>:TFM_FIH_PROFILE_ON> |
| 31 | ) |