1cmake_minimum_required(VERSION 3.20.0)
2
3find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
4project(tensorflow_magic_wand)
5
6# These samples use local static initialization. Since Zephyr doesn't support the
7# C++ ABI for thread-safe initialization of local statics and the constructors don't
8# appear to require thread safety, we turn it off in the C++ compiler.
9set(NO_THREADSAFE_STATICS $<TARGET_PROPERTY:compiler-cpp,no_threadsafe_statics>)
10zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:${NO_THREADSAFE_STATICS}>)
11
12file(GLOB app_sources src/*)
13target_sources(app PRIVATE ${app_sources} boards/litex_vexriscv.overlay)
14