Fix stand-alone delegate build
* adds missing dependencies to fix errors when building the
armnn delegate on its own
Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: I9bb676febc80eba277f981f5536a9add48e7f6dd
diff --git a/delegate/CMakeLists.txt b/delegate/CMakeLists.txt
index 9d57d21..bae1d31 100644
--- a/delegate/CMakeLists.txt
+++ b/delegate/CMakeLists.txt
@@ -118,11 +118,13 @@
$<INSTALL_INTERFACE:include/thirdparty_headers>)
target_compile_options(thirdparty_headers INTERFACE -Wno-old-style-cast)
+target_link_libraries(armnnDelegate PUBLIC thirdparty_headers)
add_library(profiling_library_headers INTERFACE)
target_include_directories(profiling_library_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/profiling>
$<INSTALL_INTERFACE:include/profiling_library_headers>)
-
+target_link_libraries(armnnDelegate PUBLIC profiling_library_headers)
+target_link_libraries(armnnDelegate PUBLIC Armnn::armnnUtils)
set_target_properties(armnnDelegate PROPERTIES VERSION ${DELEGATE_LIB_VERSION} SOVERSION ${DELEGATE_LIB_SOVERSION})
@@ -253,7 +255,9 @@
list(APPEND armnn_delegate_export_targets
armnnDelegate
tflite_headers
- flatbuffer_headers)
+ flatbuffer_headers
+ profiling_library_headers
+ thirdparty_headers)
install(
TARGETS ${armnn_delegate_export_targets}