1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4
5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6
7project(tfm_psa_crypto)
8
9# Source files in this sample
10target_sources(app PRIVATE src/main.c)
11target_sources(app PRIVATE src/psa_attestation.c)
12target_sources(app PRIVATE src/psa_crypto.c)
13target_sources(app PRIVATE src/shell.c)
14target_sources(app PRIVATE src/util_app_cfg.c)
15target_sources(app PRIVATE src/util_app_log.c)
16target_sources(app PRIVATE src/util_sformat.c)
17
18target_include_directories(app PRIVATE
19  $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
20)
21
22set_property(TARGET zephyr_property_target
23             APPEND PROPERTY TFM_CMAKE_OPTIONS
24             -DPROJECT_CONFIG_HEADER_FILE=${CMAKE_CURRENT_SOURCE_DIR}/src/configs/config_tfm.h
25)
26
27zephyr_include_directories(${APPLICATION_SOURCE_DIR}/src/configs)
28