1#------------------------------------------------------------------------------- 2# Copyright (c) 2020-2022, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7 8cmake_minimum_required(VERSION 3.21) 9 10add_library(tfm_fih_headers INTERFACE) 11add_library(tfm_fih STATIC) 12 13target_sources(tfm_fih 14 PRIVATE 15 src/fih.c 16) 17 18target_include_directories(tfm_fih_headers 19 INTERFACE 20 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> 21) 22 23target_link_libraries(tfm_fih 24 PUBLIC 25 tfm_fih_headers 26 platform_common_interface 27) 28 29target_compile_definitions(tfm_fih_headers 30 INTERFACE 31 TFM_FIH_PROFILE_${TFM_FIH_PROFILE} 32 $<$<NOT:$<STREQUAL:${TFM_FIH_PROFILE},OFF>>:TFM_FIH_PROFILE_ON> 33) 34 35target_compile_options(tfm_fih_headers 36 INTERFACE 37 $<$<C_COMPILER_ID:GNU>:-Wno-unused-value> 38) 39