aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tensorflow.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow.cmake b/tensorflow.cmake
index 6275f3d..66fb97c 100644
--- a/tensorflow.cmake
+++ b/tensorflow.cmake
@@ -75,6 +75,10 @@ add_dependencies(tflu tflu_gen)
target_include_directories(tflu INTERFACE ${TENSORFLOW_PATH})
target_compile_definitions(tflu INTERFACE TF_LITE_STATIC_MEMORY)
+if(CORE_SOFTWARE_ACCELERATOR STREQUAL NPU)
+ target_link_libraries(tflu INTERFACE ethosu_core_driver)
+endif()
+
# Install libraries and header files
get_target_property(TFLU_IMPORTED_LOCATION tflu IMPORTED_LOCATION)
install(FILES ${TFLU_IMPORTED_LOCATION} DESTINATION "lib")