diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2023-05-05 16:39:05 +0100 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2023-05-08 13:19:15 +0000 |
commit | 46e574e8195ae2e8085086457a642210d9d3b8cd (patch) | |
tree | b3a7b2bdc86b222509f5110c177a82646a58797b /tests/CMakeLists.txt | |
parent | 97a3aefff63ae081ae62aa5bac17d6e9c401937e (diff) | |
download | armnn-46e574e8195ae2e8085086457a642210d9d3b8cd.tar.gz |
IVGCVSW-7626 Add Execute Network for Opaque Delegate
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Ibdded86713368ecfdf31c4118dfe8a3404d1e3b8
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
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() |