This commit extracts scripts related with tflite_benchmark_model
from "externals/CMakeLists.txt", and move these scripts into
tflite_benchmark_model project.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
return()
endif(NOT TensorFlowLite_FOUND)
-if(BUILD_TFLITE_BENCHMARK_MODEL)
- target_compile_definitions(tensorflow-lite PUBLIC "TFLITE_PROFILING_ENABLED")
-endif()
-
if("${TARGET_OS}" STREQUAL "android")
if(NOT DEFINED NDK_DIR)
file(GLOB NDK_DIRS "${CMAKE_SOURCE_DIR}/tools/cross/ndk/*")
return()
endif(NOT BUILD_TFLITE_BENCHMARK_MODEL)
+nnfw_find_package(TensorFlowLite REQUIRED)
+
+# TODO Remove this target_compile_definitions command, and just check its presence.
+# This change is prerequisites on pre-built tensorflow-lite package support
+target_compile_definitions(tensorflow-lite PUBLIC "TFLITE_PROFILING_ENABLED")
+
file(GLOB_RECURSE SOURCES "*.cc")
nnfw_find_package(TensorFlowSource REQUIRED)