Build flatbuffer when native build and host is x86_64
Install flatc to use model tflite file for parsing and compile
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
add_library(tensorflow_graphdef ${TF_GRAPH_PROTO_SRCS})
target_include_directories(tensorflow_graphdef PUBLIC ${TF_GRAPH_PROTO_GENERATED})
target_link_libraries(tensorflow_graphdef PUBLIC libprotobuf)
+
+ add_subdirectory(flatbuffers)
endif()
#
"${CMAKE_CXX_FLAGS} -faligned-new")
endif()
set(CMAKE_CXX_FLAGS
- "${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result \
- -Wunused-parameter -Werror=unused-parameter")
+ "${CMAKE_CXX_FLAGS} -Wunused-result -Werror=unused-result -Wunused-parameter -Werror=unused-parameter")
endif()
# Certain platforms such as ARM do not use signed chars by default
install(
TARGETS flatc EXPORT FlatcTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
- CONFIGURATIONS Release
)
install(