blob: c1bf73a6ab03774c6cd921970dde50717ef76ba3 [file] [log] [blame]
Sadik Armagan3c24f432020-10-19 17:35:30 +01001#
Ryan OSheab5540542022-07-06 09:52:52 +01002# Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved.
Sadik Armagan3c24f432020-10-19 17:35:30 +01003# SPDX-License-Identifier: MIT
4#
5
Jan Eilersb968a4f2020-11-15 14:44:43 +00006cmake_minimum_required (VERSION 3.7.0)
Sadik Armagan3c24f432020-10-19 17:35:30 +01007project(armnnDelegate)
Ryan OShea238ecd92023-03-07 11:44:23 +00008set(CMAKE_CXX_STANDARD 17)
9set(CMAKE_CXX_STANDARD_REQUIRED ON)
Ryan OShea238ecd92023-03-07 11:44:23 +000010set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Wextra -Werror -Wold-style-cast -Wno-missing-braces -Wconversion -Wsign-conversion -Wno-comment")
Finn Williamsbbbefec2020-11-25 14:32:42 +000011set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
Sadik Armagan3c24f432020-10-19 17:35:30 +010012
Teresa Charlinad1b3d72023-03-14 12:10:28 +000013option(BUILD_UNIT_TESTS "Build unit tests" ON)
14option(BUILD_CLASSIC_DELEGATE "Build classic delegate" ON)
15option(BUILD_OPAQUE_DELEGATE "Build opaque delegate" OFF)
16option(BUILD_SHARED_LIBS "Build share libs" ON)
17option(BUILD_DELEGATE_JNI_INTERFACE "Builds a library to allow accessing the Arm NN delegate from Java code.
18 This is an experimental feature." ON)
19
Sadik Armagan3c24f432020-10-19 17:35:30 +010020set(armnnDelegate_sources)
21list(APPEND armnnDelegate_sources
Teresa Charlinad1b3d72023-03-14 12:10:28 +000022 common/include/DelegateOptions.hpp
23 common/src/DelegateOptions.cpp
David Monahan6c53f9f2023-04-27 15:21:19 +010024 common/src/DelegateUtils.hpp
25 common/src/MultiLayerFacade.hpp)
Sadik Armagan3c24f432020-10-19 17:35:30 +010026
27## Add Armnn as a Dependency
Finn Williamsbbbefec2020-11-25 14:32:42 +000028if(NOT ARMNN_SUB_PROJECT)
29 find_package(Armnn REQUIRED CONFIG HINTS ${Armnn_DIR})
30endif()
Teresa Charlinad1b3d72023-03-14 12:10:28 +000031
32if (BUILD_CLASSIC_DELEGATE)
33 add_subdirectory(classic)
34 add_library(armnnDelegate ${armnnDelegate_sources})
35
36 target_include_directories(armnnDelegate
37 PUBLIC
38 $<INSTALL_INTERFACE:include>
39 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/common/include>
40 PRIVATE
41 ${CMAKE_CURRENT_SOURCE_DIR}/common/src)
42endif()
43if (BUILD_OPAQUE_DELEGATE)
44 add_subdirectory(opaque)
45 add_library(armnnOpaqueDelegate ${armnnDelegate_sources})
46
47 target_include_directories(armnnOpaqueDelegate
48 PUBLIC
49 $<INSTALL_INTERFACE:include>
50 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/common/include>
51 PRIVATE
52 ${CMAKE_CURRENT_SOURCE_DIR}/common/src)
53endif()
54
55include(GNUInstallDirs)
56
57if (BUILD_CLASSIC_DELEGATE)
58 target_link_libraries(armnnDelegate PUBLIC Armnn::Armnn)
59
60 ## Add armnnClassicDelegateObject as a Dependency
61 target_link_libraries(armnnDelegate PUBLIC armnnClassicDelegateObject)
62endif()
63if (BUILD_OPAQUE_DELEGATE)
64 target_link_libraries(armnnOpaqueDelegate PUBLIC Armnn::Armnn)
65
66 ## Add armnnOpaqueDelegateObject as a Dependency
67 target_link_libraries(armnnOpaqueDelegate PUBLIC armnnOpaqueDelegateObject)
68endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +010069
Keith Davis9a701c82021-09-28 16:43:24 +010070## Add TfLite dependency
Jim Flynnfca233e2021-09-23 12:16:53 +010071find_package(TfLiteSrc REQUIRED MODULE)
Sadik Armagan3c24f432020-10-19 17:35:30 +010072find_package(TfLite REQUIRED MODULE)
Teresa Charlinad1b3d72023-03-14 12:10:28 +000073if (BUILD_CLASSIC_DELEGATE)
74 target_link_libraries(armnnDelegate PUBLIC ${TfLite_LIB})
Sadik Armagan3c24f432020-10-19 17:35:30 +010075
Teresa Charlinad1b3d72023-03-14 12:10:28 +000076 # lpthread and ldl are not required for Android
77 if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL Android)
78 target_link_libraries(armnnDelegate PUBLIC -lpthread)
79 target_link_libraries(armnnDelegate PUBLIC -ldl)
80 endif()
Keith Davisd62eef92021-09-20 18:17:33 +010081endif()
Teresa Charlinad1b3d72023-03-14 12:10:28 +000082if (BUILD_OPAQUE_DELEGATE)
83 target_link_libraries(armnnOpaqueDelegate PUBLIC ${TfLite_LIB})
Keith Davisd62eef92021-09-20 18:17:33 +010084
Teresa Charlinad1b3d72023-03-14 12:10:28 +000085 # lpthread and ldl are not required for Android
86 if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL Android)
87 target_link_libraries(armnnOpaqueDelegate PUBLIC -lpthread)
88 target_link_libraries(armnnOpaqueDelegate PUBLIC -ldl)
89 endif()
90endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +010091
Narumol Prangnawarat4cf0fe32020-12-18 16:13:06 +000092# Add libraries from armnn third-party libraries
93# Third-party header files are not warning clean
94# We can't change compilation flags on header files directly, so we need to add them to an interface library first
95add_library(thirdparty_headers INTERFACE)
96target_include_directories(thirdparty_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/third-party>
97 $<INSTALL_INTERFACE:include/thirdparty_headers>)
98
99target_compile_options(thirdparty_headers INTERFACE -Wno-old-style-cast)
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000100if (BUILD_CLASSIC_DELEGATE)
101 target_link_libraries(armnnDelegate PUBLIC thirdparty_headers)
102endif()
103if (BUILD_OPAQUE_DELEGATE)
104 target_link_libraries(armnnOpaqueDelegate PUBLIC thirdparty_headers)
105endif()
Narumol Prangnawarat4cf0fe32020-12-18 16:13:06 +0000106
Jim Flynnfca233e2021-09-23 12:16:53 +0100107add_library(profiling_library_headers INTERFACE)
108target_include_directories(profiling_library_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/profiling>
109 $<INSTALL_INTERFACE:include/profiling_library_headers>)
Jim Flynnfca233e2021-09-23 12:16:53 +0100110
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000111if (BUILD_CLASSIC_DELEGATE)
112 target_link_libraries(armnnDelegate PUBLIC profiling_library_headers)
113 target_link_libraries(armnnDelegate PUBLIC Armnn::armnnUtils)
Matthew Sloyanac001ee2021-02-03 10:43:04 +0000114
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000115 set_target_properties(armnnDelegate PROPERTIES VERSION ${DELEGATE_LIB_VERSION} SOVERSION ${DELEGATE_LIB_SOVERSION})
116endif()
117if (BUILD_OPAQUE_DELEGATE)
118 target_link_libraries(armnnOpaqueDelegate PUBLIC profiling_library_headers)
119 target_link_libraries(armnnOpaqueDelegate PUBLIC Armnn::armnnUtils)
120
121 set_target_properties(armnnOpaqueDelegate PROPERTIES VERSION ${OPAQUE_DELEGATE_LIB_VERSION} SOVERSION ${OPAQUE_DELEGATE_LIB_SOVERSION})
122endif()
123
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100124if(BUILD_UNIT_TESTS)
125 set(commonDelegate_unittest_sources)
126 list(APPEND commonDelegate_unittest_sources
127 common/src/test/DelegateTestInterpreter.hpp
128 common/src/test/DelegateTestInterpreterUtils.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000129 test/ActivationTest.cpp
130 test/ActivationTestHelper.hpp
131 test/ArgMinMaxTest.cpp
132 test/ArgMinMaxTestHelper.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000133 test/BatchMatMulTest.cpp
134 test/BatchMatMulTestHelper.hpp
135 test/BatchSpaceTest.cpp
136 test/BatchSpaceTestHelper.hpp
137 test/CastTest.cpp
138 test/CastTestHelper.hpp
139 test/ComparisonTest.cpp
140 test/ComparisonTestHelper.hpp
141 test/ControlTest.cpp
142 test/ControlTestHelper.hpp
143 test/Convolution2dTest.cpp
144 test/Convolution3dTest.cpp
145 test/ConvolutionTestHelper.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000146 test/DepthwiseConvolution2dTest.cpp
147 test/ElementwiseBinaryTest.cpp
148 test/ElementwiseBinaryTestHelper.hpp
149 test/ElementwiseUnaryTest.cpp
150 test/ElementwiseUnaryTestHelper.hpp
Matthew Sloyan3504e422023-05-03 13:53:02 +0100151 test/ExpandDimsTest.cpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000152 test/FillTest.cpp
153 test/FillTestHelper.hpp
154 test/FullyConnectedTest.cpp
155 test/FullyConnectedTestHelper.hpp
156 test/GatherTest.cpp
157 test/GatherTestHelper.hpp
158 test/GatherNdTest.cpp
159 test/GatherNdTestHelper.hpp
160 test/LogicalTest.cpp
161 test/LogicalTestHelper.hpp
162 test/LstmTest.cpp
163 test/LstmTestHelper.hpp
164 test/MirrorPadTest.cpp
165 test/NormalizationTest.cpp
166 test/NormalizationTestHelper.hpp
167 test/PackTest.cpp
168 test/PackTestHelper.hpp
169 test/PadTest.cpp
170 test/PadTestHelper.hpp
171 test/Pooling2dTest.cpp
172 test/Pooling2dTestHelper.hpp
173 test/Pooling3dTest.cpp
174 test/Pooling3dTestHelper.hpp
175 test/PreluTest.cpp
176 test/PreluTestHelper.hpp
177 test/QuantizationTest.cpp
178 test/QuantizationTestHelper.hpp
179 test/RedefineTestHelper.hpp
180 test/ReduceTest.cpp
181 test/ReduceTestHelper.hpp
182 test/ReshapeTest.cpp
183 test/ResizeTest.cpp
184 test/ResizeTestHelper.hpp
Tracy Narine7306bbe2023-07-17 16:06:26 +0100185 test/ReverseV2Test.cpp
186 test/ReverseV2TestHelper.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000187 test/RoundTest.cpp
188 test/RoundTestHelper.hpp
189 test/SoftmaxTest.cpp
190 test/SoftmaxTestHelper.hpp
191 test/SpaceDepthTest.cpp
192 test/SpaceDepthTestHelper.hpp
193 test/ShapeTest.cpp
194 test/ShapeTestHelper.hpp
195 test/SliceTest.cpp
196 test/SliceTestHelper.hpp
Matthew Sloyan3504e422023-05-03 13:53:02 +0100197 test/SqueezeTest.cpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000198 test/StridedSliceTest.cpp
199 test/StridedSliceTestHelper.hpp
200 test/SplitTest.cpp
201 test/SplitTestHelper.hpp
202 test/TestUtils.hpp
203 test/TestUtils.cpp
Tianle Cheng92ce35c2023-07-25 16:41:00 +0100204 test/TileTest.cpp
205 test/TileTestHelper.hpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100206 test/TransposeConvolution2dTest.cpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000207 test/TransposeTest.cpp
208 test/TransposeTestHelper.hpp
209 test/UnidirectionalSequenceLstmTest.cpp
210 test/UnidirectionalSequenceLstmTestHelper.hpp
211 test/UnpackTest.cpp
212 test/UnpackTestHelper.hpp)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100213
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100214 # There's a known Android NDK bug which causes a subset of NeonLayerTests to
215 # fail. We'll exclude these tests in NeonLayerTests_NDK_Bug.cpp if we're doing
216 # a debug build and NDK is less than r21.
217 # https://github.com/android/ndk/issues/1135
Keith Davis7c67fab2021-04-08 11:47:23 +0100218
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100219 # Default to always including these tests.
220 set(INCLUDE_NDK_BUG_TESTS "ON")
221 # Reconsider if we in a debug build.
222 string( TOLOWER ${CMAKE_BUILD_TYPE} BUILD_TYPE_LOWERCASE )
223 if ( NOT BUILD_TYPE_LOWERCASE STREQUAL "release" )
224 message("CMAKE:: BUILD TYPE IS ${CMAKE_BUILD_TYPE}")
225 # And NDK_VERSION has been set.
226 if ( DEFINED NDK_VERSION )
227 message("CMAKE:: NDK DEFINED")
228 # And the version is less than r21.
229 if ( ${NDK_VERSION} STRLESS "r21" )
230 message("CMAKE:: BUG TESTS OFF")
231 set(INCLUDE_NDK_BUG_TESTS "OFF")
Keith Davis7c67fab2021-04-08 11:47:23 +0100232 endif()
233 endif()
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100234 endif()
Keith Davis7c67fab2021-04-08 11:47:23 +0100235
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100236 if ( INCLUDE_NDK_BUG_TESTS STREQUAL "ON" )
237 list(APPEND commonDelegate_unittest_sources
238 test/NeonDelegateTests_NDK_Issue.cpp)
239 endif()
Keith Davis7c67fab2021-04-08 11:47:23 +0100240
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100241 if (BUILD_CLASSIC_DELEGATE)
242 set(classicDelegate_unittest_sources)
243 list(APPEND classicDelegate_unittest_sources
244 classic/src/test/ArmnnClassicDelegateTest.cpp
Ryan OShea59f8f652023-05-11 20:37:53 +0100245 classic/src/test/DelegateTestInterpreter.cpp
246 test/DelegateOptionsTest.cpp
247 test/DelegateOptionsTestHelper.hpp)
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100248
249 add_executable(DelegateUnitTests ${commonDelegate_unittest_sources} ${classicDelegate_unittest_sources})
Keith Davis7c67fab2021-04-08 11:47:23 +0100250
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000251 target_include_directories(DelegateUnitTests SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}")
Matthew Sloyanebe392d2023-03-30 10:12:08 +0100252 target_include_directories(DelegateUnitTests SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/common/src/test")
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100253 target_include_directories(DelegateUnitTests PUBLIC ${PROJECT_SOURCE_DIR})
Sadik Armagan3c24f432020-10-19 17:35:30 +0100254
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000255 # Add half library from armnn third-party libraries
256 target_link_libraries(DelegateUnitTests PRIVATE thirdparty_headers)
Ryan OSheaac9607f2023-04-03 11:33:33 +0100257 target_link_libraries(DelegateUnitTests PRIVATE armnnDelegate)
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000258 target_link_libraries(DelegateUnitTests PRIVATE Armnn::armnnUtils)
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000259 target_link_libraries(DelegateUnitTests PRIVATE profiling_library_headers)
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100260 endif()
261
262 if (BUILD_OPAQUE_DELEGATE)
263 set(opaqueDelegate_unittest_sources)
264 list(APPEND opaqueDelegate_unittest_sources
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100265 opaque/src/test/ArmnnOpaqueDelegateTest.cpp
Ryan OShea59f8f652023-05-11 20:37:53 +0100266 opaque/src/test/DelegateTestInterpreter.cpp)
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100267
268 # Until all operators are supported, we have to add tests one by one above to opaqueDelegate_unittest_sources.
269 # After we add can add commonDelegate_unittest_sources to the add_executable below.
Ryan OShea59f8f652023-05-11 20:37:53 +0100270 add_executable(OpaqueDelegateUnitTests ${opaqueDelegate_unittest_sources} ${commonDelegate_unittest_sources})
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100271
272 target_include_directories(OpaqueDelegateUnitTests SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}")
273 target_include_directories(OpaqueDelegateUnitTests SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/common/src/test")
274 target_include_directories(OpaqueDelegateUnitTests PUBLIC ${PROJECT_SOURCE_DIR})
275
276 # Add half library from armnn third-party libraries
277 target_link_libraries(OpaqueDelegateUnitTests PRIVATE thirdparty_headers)
278 target_link_libraries(OpaqueDelegateUnitTests PRIVATE armnnOpaqueDelegate)
279 target_link_libraries(OpaqueDelegateUnitTests PRIVATE Armnn::armnnUtils)
280 target_link_libraries(OpaqueDelegateUnitTests PRIVATE profiling_library_headers)
281 endif()
Sadik Armagan4189cc52020-11-11 18:01:48 +0000282endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +0100283
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100284if(BUILD_DELEGATE_JNI_INTERFACE AND BUILD_CLASSIC_DELEGATE)
Jan Eilersa96489a2021-12-08 10:05:47 +0000285 add_subdirectory(armnnDelegateJNI)
286endif()
287
Sadik Armagan3c24f432020-10-19 17:35:30 +0100288####################################################
289## Export targets
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100290if (BUILD_CLASSIC_DELEGATE)
291 set(armnn_delegate_export_targets)
292 list(APPEND armnn_delegate_export_targets
293 armnnClassicDelegateObject
294 armnnDelegate
295 tflite_headers
296 flatbuffer_headers
297 profiling_library_headers
298 thirdparty_headers)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100299
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100300 install(
301 TARGETS ${armnn_delegate_export_targets}
302 EXPORT armnn-delegate-targets
303 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
304 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
305 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Sadik Armagan3c24f432020-10-19 17:35:30 +0100306
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100307 ## Set export alias
308 set_target_properties(armnnDelegate
309 PROPERTIES
310 EXPORT_NAME ArmnnDelegate)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100311
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100312 ## Export target scrips
313 install(
314 EXPORT armnn-delegate-targets
315 FILE ArmnnDelegateTargets.cmake
316 NAMESPACE ArmnnDelegate::
317 DESTINATION ${CMAKE_INSTALL_LIBDIR})
Sadik Armagan3c24f432020-10-19 17:35:30 +0100318
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100319 ## Create ArmnnDelegateConfig.cmake
320 include(CMakePackageConfigHelpers)
321 set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR})
322 message(STATUS "CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_DIR}" )
323 message(STATUS "CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}" )
324 SET(Armnn_DIR "${Armnn_DIR}")
Finn Williamsbbbefec2020-11-25 14:32:42 +0000325
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100326 configure_package_config_file(
327 ${CMAKE_CURRENT_LIST_DIR}/cmake/Modules/ArmnnDelegateConfig.cmake.in
328 ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateConfig.cmake
329 INSTALL_DESTINATION ${INSTALL_CONFIGDIR}
330 PATH_VARS Armnn_DIR)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100331
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100332 ## Install ArmNN Delegate config file
333 install(
334 FILES
335 ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateConfig.cmake
336 DESTINATION ${INSTALL_CONFIGDIR})
Sadik Armagan3c24f432020-10-19 17:35:30 +0100337
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100338 ## Export from build tree
339 export(
340 EXPORT armnn-delegate-targets
341 FILE ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateTargets.cmake
342 NAMESPACE ArmnnDelegate::)
343 add_library(ArmnnDelegate::ArmnnDelegate ALIAS armnnDelegate)
344endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +0100345
Narumol Prangnawarat50c87d32020-11-09 18:42:11 +0000346####################################################
Narumol Prangnawarat46e574e2023-05-05 16:39:05 +0100347## Export opaque delegate targets
348
349if(BUILD_OPAQUE_DELEGATE)
350 set(armnn_opaque_delegate_export_targets)
351 list(APPEND armnn_opaque_delegate_export_targets
352 armnnOpaqueDelegateObject
353 armnnOpaqueDelegate
354 tflite_headers
355 flatbuffer_headers
356 profiling_library_headers
357 thirdparty_headers)
358
359 install(
360 TARGETS armnnOpaqueDelegate
361 EXPORT armnn-opaque-delegate-targets
362 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
363 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
364 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
365
366 ## Set export alias
367 set_target_properties(armnnOpaqueDelegate
368 PROPERTIES
369 EXPORT_NAME ArmnnOpaqueDelegate)
370
371 add_library(ArmnnDelegate::ArmnnOpaqueDelegate ALIAS armnnOpaqueDelegate)
372endif()
373
374####################################################