Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / tests / tools / tflite_vanilla_run / CMakeLists.txt
1 if(NOT BUILD_TFLITE_VANILLA_RUN)
2   return()
3 endif()
4
5 if(NOT BUILD_TENSORFLOW_LITE_2_3_0)
6   set(BUILD_TENSORFLOW_LITE_2_3_0 ON)
7 endif()
8
9 nnfw_find_package(TensorFlowLite-2.3.0 REQUIRED)
10 nnfw_find_package(Boost REQUIRED)
11
12 list(APPEND TFLITE_RUN_SRCS "src/tflite_vanilla_run.cc")
13 list(APPEND TFLITE_RUN_SRCS "src/args.cc")
14
15 add_executable(tflite_vanilla_run ${TFLITE_RUN_SRCS})
16 target_include_directories(tflite_vanilla_run PRIVATE src)
17 target_include_directories(tflite_vanilla_run PRIVATE ${Boost_INCLUDE_DIRS})
18
19 target_link_libraries(tflite_vanilla_run tensorflow-lite-2.3.0 ${LIB_PTHREAD} dl)
20 target_link_libraries(tflite_vanilla_run ${Boost_PROGRAM_OPTIONS_LIBRARY})
21 target_link_libraries(tflite_vanilla_run nnfw_lib_benchmark nnfw_lib_misc)
22
23 install(TARGETS tflite_vanilla_run DESTINATION bin)