-# Need internal header code to build cpu backend
-nnfw_find_package(TensorFlowSource QUIET)
-nnfw_find_package(TensorFlowLite QUIET)
-if((NOT TensorFlowSource_FOUND) OR (NOT TensorFlowLite_FOUND))
- return()
-endif()
-
add_subdirectory(kernel)
file(GLOB_RECURSE SOURCES "*.cc")
add_library(${LIB_NEURUN_BACKEND_CPU} SHARED ${SOURCES})
-target_include_directories(${LIB_NEURUN_BACKEND_CPU} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)
-
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnapi-header)
-target_link_libraries(${LIB_NEURUN_BACKEND_CPU} tensorflow-lite)
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_misc)
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} nnfw_lib_cpp14)
target_link_libraries(${LIB_NEURUN_BACKEND_CPU} ${LIB_NEURUN_KERNEL_CPU})
add_library(${LIB_NEURUN_KERNEL_CPU} STATIC ${SOURCES})
target_include_directories(${LIB_NEURUN_KERNEL_CPU} PUBLIC ${NEURUN_INCLUDE_DIR})
-target_include_directories(${LIB_NEURUN_KERNEL_CPU} PUBLIC ${CMAKE_SOURCE_DIR}/externals/tensorflow)
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnapi-header)
-target_link_libraries(${LIB_NEURUN_KERNEL_CPU} tensorflow-lite)
target_link_libraries(${LIB_NEURUN_KERNEL_CPU} nnfw_lib_misc nnfw_lib_cker)
set_target_properties(${LIB_NEURUN_KERNEL_CPU} PROPERTIES POSITION_INDEPENDENT_CODE ON)