samples: tensorflow: change from file list to glob in cmakelists.txt

Changes CMakeLists.txt in TensorFlow samples from explicit file
list to a GLOB capturing src/* to make TensorFlow samples consistent
with other samples in tree.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
This commit is contained in:
Lauren Murphy 2021-05-20 16:44:37 -05:00 committed by Anas Nashif
commit f77d5c5c53
2 changed files with 4 additions and 28 deletions

View file

@ -9,15 +9,5 @@ project(tensorflow_hello_world)
set(NO_THREADSAFE_STATICS $<TARGET_PROPERTY:compiler-cpp,no_threadsafe_statics>)
zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:${NO_THREADSAFE_STATICS}>)
target_sources(app PRIVATE
src/assert.cc
src/main.c
src/main_functions.cc
src/constants.c
src/output_handler.cc
src/model.cc
src/model.h
src/output_handler.h
src/constants.h
src/main_functions.h
)
file(GLOB app_sources src/*)
target_sources(app PRIVATE ${app_sources})

View file

@ -9,19 +9,5 @@ project(tensorflow_magic_wand)
set(NO_THREADSAFE_STATICS $<TARGET_PROPERTY:compiler-cpp,no_threadsafe_statics>)
zephyr_compile_options($<$<COMPILE_LANGUAGE:CXX>:${NO_THREADSAFE_STATICS}>)
target_sources(app PRIVATE
src/main_functions.h
src/constants.h
src/magic_wand_model_data.h
src/gesture_predictor.h
src/output_handler.h
src/assert.cc
src/accelerometer_handler.cc
src/accelerometer_handler.h
src/main.cc
src/main_functions.cc
src/magic_wand_model_data.cc
src/gesture_predictor.cc
src/output_handler.cc
boards/litex_vexriscv.overlay
)
file(GLOB app_sources src/*)
target_sources(app PRIVATE ${app_sources} boards/litex_vexriscv.overlay)