Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / tests / tools / tflite_loader / CMakeLists.txt
1 if(NOT BUILD_TFLITE_LOADER_TEST_TOOL)
2   message("skipping tflite loader tool build")
3   return()
4 endif(NOT BUILD_TFLITE_LOADER_TEST_TOOL)
5
6 if(NOT BUILD_ONERT)
7   message("skipping tflite loader tool build: onert is not built")
8   return()
9 endif(NOT BUILD_ONERT)
10
11 list(APPEND SOURCES "src/tflite_loader.cc")
12 list(APPEND SOURCES "src/args.cc")
13
14 nnfw_find_package(Boost REQUIRED program_options system filesystem)
15
16 add_executable(tflite_loader_test_tool ${SOURCES})
17 target_include_directories(tflite_loader_test_tool PRIVATE ${Boost_INCLUDE_DIRS})
18
19 target_link_libraries(tflite_loader_test_tool onert_core onert tflite_loader)
20 target_link_libraries(tflite_loader_test_tool nnfw_lib_tflite nnfw_lib_misc)
21 target_link_libraries(tflite_loader_test_tool ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})
22
23 install(TARGETS tflite_loader_test_tool DESTINATION bin)