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