Move build flag for benchmark model tool checking (#4056)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 17 Dec 2018 04:20:41 +0000 (13:20 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 17 Dec 2018 04:20:41 +0000 (13:20 +0900)
Move build flag BUILD_TFLITE_BENCHMARK_MODEL checking into tool's cmake

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
tools/CMakeLists.txt
tools/tflite_benchmark_model/CMakeLists.txt

index f57262f..31aa3d5 100644 (file)
@@ -1,8 +1,6 @@
 add_subdirectory(tflite_run)
 add_subdirectory(tflite_benchmark)
-if (BUILD_TFLITE_BENCHMARK_MODEL)
-  add_subdirectory(tflite_benchmark_model)
-endif()
+add_subdirectory(tflite_benchmark_model)
 add_subdirectory(tflite_examples)
 add_subdirectory(nnapi_test)
 add_subdirectory(nnapi_quickcheck)
index 2623fe2..c48f658 100644 (file)
@@ -1,3 +1,7 @@
+if (NOT BUILD_TFLITE_BENCHMARK_MODEL)
+  return()
+endif(NOT BUILD_TFLITE_BENCHMARK_MODEL)
+
 file(GLOB_RECURSE SOURCES "*.cc")
 
 nnfw_find_package(TensorFlowSource REQUIRED)