From 46e574e8195ae2e8085086457a642210d9d3b8cd Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Fri, 5 May 2023 16:39:05 +0100 Subject: IVGCVSW-7626 Add Execute Network for Opaque Delegate Signed-off-by: Narumol Prangnawarat Change-Id: Ibdded86713368ecfdf31c4118dfe8a3404d1e3b8 --- tests/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 102d744aa7..71374c4261 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -141,7 +141,8 @@ endif() if (BUILD_ARMNN_SERIALIZER OR BUILD_TF_LITE_PARSER OR BUILD_ONNX_PARSER - OR BUILD_CLASSIC_DELEGATE) + OR BUILD_CLASSIC_DELEGATE + OR BUILD_OPAQUE_DELEGATE) set(ExecuteNetwork_sources ExecuteNetwork/IExecutor.hpp ExecuteNetwork/ArmNNExecutor.cpp @@ -154,7 +155,7 @@ if (BUILD_ARMNN_SERIALIZER NetworkExecutionUtils/NetworkExecutionUtils.cpp NetworkExecutionUtils/NetworkExecutionUtils.hpp) - if(BUILD_CLASSIC_DELEGATE) + if(BUILD_CLASSIC_DELEGATE OR BUILD_OPAQUE_DELEGATE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-comment") set(ExecuteNetwork_sources ${ExecuteNetwork_sources} @@ -167,6 +168,7 @@ if (BUILD_ARMNN_SERIALIZER target_include_directories(ExecuteNetwork PRIVATE ../src/armnnUtils) target_include_directories(ExecuteNetwork PRIVATE ../src/backends) target_include_directories(ExecuteNetwork PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + if(EXECUTE_NETWORK_STATIC) target_link_libraries(ExecuteNetwork -Wl,--whole-archive @@ -189,6 +191,9 @@ if (BUILD_ARMNN_SERIALIZER if (BUILD_CLASSIC_DELEGATE) target_link_libraries(ExecuteNetwork ArmnnDelegate::ArmnnDelegate) endif() + if (BUILD_OPAQUE_DELEGATE) + target_link_libraries(ExecuteNetwork ArmnnDelegate::ArmnnOpaqueDelegate) + endif() target_link_libraries(ExecuteNetwork armnn) endif() -- cgit v1.2.1