diff options
Diffstat (limited to 'runtime/libs/tflite/CMakeLists.txt')
-rw-r--r-- | runtime/libs/tflite/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/libs/tflite/CMakeLists.txt b/runtime/libs/tflite/CMakeLists.txt index b5a16bcd9..04ced8e0f 100644 --- a/runtime/libs/tflite/CMakeLists.txt +++ b/runtime/libs/tflite/CMakeLists.txt @@ -1,3 +1,9 @@ +nnfw_find_package(TensorFlowLite QUIET) +if(NOT TensorFlowLite_FOUND) + message(STATUS "Check tensorflow lite library extension build: need tensorflow lite library") + return() +endif(NOT TensorFlowLite_FOUND) + add_subdirectory(port) file(GLOB_RECURSE SOURCES "src/*.cpp") @@ -13,5 +19,9 @@ target_link_libraries(nnfw_lib_tflite PRIVATE ${LIB_PTHREAD} dl) target_link_libraries(nnfw_lib_tflite PRIVATE nnfw_common) target_link_libraries(nnfw_lib_tflite PRIVATE nnfw_coverage) +if(NOT ENABLE_TEST) + return() +endif(NOT ENABLE_TEST) + add_executable(nnfw_lib_tflite_test_TensorView src/TensorView.test.cpp) target_link_libraries(nnfw_lib_tflite_test_TensorView nnfw_lib_tflite) |