cmake: minimal example build support

$ cmake ../tensorflow/lite/
$ cmake --build . -t minimal

PiperOrigin-RevId: 339585522
Change-Id: I58511caa6b0115ea0eebd6b9c51b9f9076766f2a
This commit is contained in:
Terry Heo 2020-10-28 19:37:21 -07:00
parent 0d010fd10e
commit a876f91d24

View File

@ -449,3 +449,13 @@ target_compile_options(benchmark_model
target_link_libraries(benchmark_model
${TFLITE_BENCHMARK_LIBS}
)
# TFLite minimal example
add_executable(minimal
EXCLUDE_FROM_ALL
${TFLITE_SOURCE_DIR}/examples/minimal/minimal.cc
)
target_link_libraries(minimal
tensorflow-lite
${CMAKE_DL_LIBS}
)