2021-08-10 20:44:56 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2021-04-27 11:01:30 +08:00
|
|
|
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(tensorflow_hello_world)
|
|
|
|
|
2021-05-19 04:41:45 +08:00
|
|
|
# These samples use local static initialization. Since Zephyr doesn't support the
|
|
|
|
# C++ ABI for thread-safe initialization of local statics and the constructors don't
|
|
|
|
# appear to require thread safety, we turn it off in the C++ compiler.
|
|
|
|
set(NO_THREADSAFE_STATICS $<TARGET_PROPERTY:compiler-cpp,no_threadsafe_statics>)
|
|
|
|
zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:${NO_THREADSAFE_STATICS}>)
|
2021-04-27 11:01:30 +08:00
|
|
|
|
2021-05-21 05:44:37 +08:00
|
|
|
file(GLOB app_sources src/*)
|
|
|
|
target_sources(app PRIVATE ${app_sources})
|