summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>2019-04-11 03:22:56 (GMT)
committerGitHub Enterprise <noreply-CODE@samsung.com>2019-04-11 03:22:56 (GMT)
commite4ad757c394e9e558ff9f6d2c7b5145cfe2c95de (patch)
treec7b41c363c6d01dab07483c0a65b2dbc52e615ba
parent2fcafe61cac6109274437248cad09974d97041c4 (diff)
downloadnnfw-e4ad757c394e9e558ff9f6d2c7b5145cfe2c95de.zip
nnfw-e4ad757c394e9e558ff9f6d2c7b5145cfe2c95de.tar.gz
nnfw-e4ad757c394e9e558ff9f6d2c7b5145cfe2c95de.tar.bz2
Remove cpu backend build dependency with tflite (#4975)
Remove header path and linking dependency with tflite in cpu backend build cmake Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
-rw-r--r--runtimes/neurun/backend/cpu/CMakeLists.txt10
-rw-r--r--runtimes/neurun/backend/cpu/kernel/CMakeLists.txt2
2 files changed, 0 insertions, 12 deletions
diff --git a/runtimes/neurun/backend/cpu/CMakeLists.txt b/runtimes/neurun/backend/cpu/CMakeLists.txt
index 37fbfd8..fac5abe 100644
--- a/runtimes/neurun/backend/cpu/CMakeLists.txt
+++ b/runtimes/neurun/backend/cpu/CMakeLists.txt
@@ -1,10 +1,3 @@
-# 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")
@@ -15,10 +8,7 @@ list(REMOVE_ITEM SOURCES ${TESTS})
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})
diff --git a/runtimes/neurun/backend/cpu/kernel/CMakeLists.txt b/runtimes/neurun/backend/cpu/kernel/CMakeLists.txt
index 1f35ce9..d2b3b54 100644
--- a/runtimes/neurun/backend/cpu/kernel/CMakeLists.txt
+++ b/runtimes/neurun/backend/cpu/kernel/CMakeLists.txt
@@ -3,10 +3,8 @@ file(GLOB SOURCES "*.cc")
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)