aboutsummaryrefslogtreecommitdiff
path: root/lib/fih/CMakeLists.txt
blob: e9e1a9c676d2ca8a2ad083475b7b93cd26f36fbc (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
#-------------------------------------------------------------------------------
# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#-------------------------------------------------------------------------------

cmake_minimum_required(VERSION 3.15)

add_library(tfm_fih STATIC)

target_sources(tfm_fih
    PRIVATE
        src/fih.c
)

target_include_directories(tfm_fih
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
)

target_link_libraries(tfm_fih
    PRIVATE
        platform_s
)

target_compile_definitions(tfm_fih
    PUBLIC
        TFM_FIH_PROFILE_${TFM_FIH_PROFILE}
        $<$<NOT:$<STREQUAL:${TFM_FIH_PROFILE},OFF>>:TFM_FIH_PROFILE_ON>
)