1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4set(QEMU_EXTRA_FLAGS -s)
5
6find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
7project(mesh_demo)
8
9target_sources(app PRIVATE src/main.c)
10target_sources_ifdef(CONFIG_BOARD_BBC_MICROBIT app PRIVATE src/microbit.c)
11
12if(NODE_ADDR)
13  zephyr_compile_definitions(NODE_ADDR=${NODE_ADDR})
14endif()
15
16if (CONFIG_BUILD_WITH_TFM)
17  target_include_directories(app PRIVATE
18    $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
19  )
20endif()
21