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) 8 9target_sources(app PRIVATE src/main.c) 10 11if(CONFIG_BOARD_BBC_MICROBIT) 12 target_sources(app PRIVATE src/microbit.c) 13else() 14 target_sources(app PRIVATE src/board.c) 15endif() 16 17if (CONFIG_BUILD_WITH_TFM) 18 target_include_directories(app PRIVATE 19 $<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include 20 ) 21endif() 22