--- /dev/null
+add_library(tensorflowlite ${SRCS})
+set_target_properties(tensorflowlite PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_include_directories(tensorflowlite PUBLIC ${TensorFlowSource_DIR})
+target_compile_options(tensorflowlite PUBLIC -Wno-ignored-attributes)
+target_compile_definitions(tensorflowlite PUBLIC "GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK")
+target_link_libraries(tensorflowlite eigen gemmlowp neon2sse farmhash flatbuffers dl)
list(APPEND SRCS ${KERNEL_SRCS})
if(NOT TARGET tensorflowlite)
- add_library(tensorflowlite ${SRCS})
- set_target_properties(tensorflowlite PROPERTIES POSITION_INDEPENDENT_CODE ON)
- target_include_directories(tensorflowlite PUBLIC ${TensorFlowSource_DIR})
- target_compile_options(tensorflowlite PUBLIC -Wno-ignored-attributes)
- target_compile_definitions(tensorflowlite PUBLIC "GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK")
- target_link_libraries(tensorflowlite eigen gemmlowp neon2sse farmhash flatbuffers dl)
+ nncc_find_package(ExternalProjectTools REQUIRED)
+ add_extdirectory("${CMAKE_CURRENT_LIST_DIR}/TensorFlowLite" tflite)
endif(NOT TARGET tensorflowlite)
set(TensorFlowLite_FOUND TRUE PARENT_SCOPE)