blob: 0fe1c69de4c9f297e8c4bbb5bf1fd24f4adfca2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
if(NOT BUILD_TFLITE_LOADER_TEST_TOOL)
message("skipping tflite loader tool build")
return()
endif(NOT BUILD_TFLITE_LOADER_TEST_TOOL)
if(NOT BUILD_ONERT)
message("skipping tflite loader tool build: onert is not built")
return()
endif(NOT BUILD_ONERT)
list(APPEND SOURCES "src/tflite_loader.cc")
list(APPEND SOURCES "src/args.cc")
nnfw_find_package(Boost REQUIRED program_options system filesystem)
add_executable(tflite_loader_test_tool ${SOURCES})
target_include_directories(tflite_loader_test_tool PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(tflite_loader_test_tool onert_core onert tflite_loader)
target_link_libraries(tflite_loader_test_tool nnfw_lib_tflite nnfw_lib_misc)
target_link_libraries(tflite_loader_test_tool ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})
install(TARGETS tflite_loader_test_tool DESTINATION bin)
|