blob: 8045ee8e1d567f285aa1a16e603e5d915b67279c [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
24 common/src/DelegateUtils.hpp)
Sadik Armagan3c24f432020-10-19 17:35:30 +010025
26## Add Armnn as a Dependency
Finn Williamsbbbefec2020-11-25 14:32:42 +000027if(NOT ARMNN_SUB_PROJECT)
28 find_package(Armnn REQUIRED CONFIG HINTS ${Armnn_DIR})
29endif()
Teresa Charlinad1b3d72023-03-14 12:10:28 +000030
31if (BUILD_CLASSIC_DELEGATE)
32 add_subdirectory(classic)
33 add_library(armnnDelegate ${armnnDelegate_sources})
34
35 target_include_directories(armnnDelegate
36 PUBLIC
37 $<INSTALL_INTERFACE:include>
38 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/common/include>
39 PRIVATE
40 ${CMAKE_CURRENT_SOURCE_DIR}/common/src)
41endif()
42if (BUILD_OPAQUE_DELEGATE)
43 add_subdirectory(opaque)
44 add_library(armnnOpaqueDelegate ${armnnDelegate_sources})
45
46 target_include_directories(armnnOpaqueDelegate
47 PUBLIC
48 $<INSTALL_INTERFACE:include>
49 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/common/include>
50 PRIVATE
51 ${CMAKE_CURRENT_SOURCE_DIR}/common/src)
52endif()
53
54include(GNUInstallDirs)
55
56if (BUILD_CLASSIC_DELEGATE)
57 target_link_libraries(armnnDelegate PUBLIC Armnn::Armnn)
58
59 ## Add armnnClassicDelegateObject as a Dependency
60 target_link_libraries(armnnDelegate PUBLIC armnnClassicDelegateObject)
61endif()
62if (BUILD_OPAQUE_DELEGATE)
63 target_link_libraries(armnnOpaqueDelegate PUBLIC Armnn::Armnn)
64
65 ## Add armnnOpaqueDelegateObject as a Dependency
66 target_link_libraries(armnnOpaqueDelegate PUBLIC armnnOpaqueDelegateObject)
67endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +010068
Keith Davis9a701c82021-09-28 16:43:24 +010069## Add TfLite dependency
Jim Flynnfca233e2021-09-23 12:16:53 +010070find_package(TfLiteSrc REQUIRED MODULE)
Sadik Armagan3c24f432020-10-19 17:35:30 +010071find_package(TfLite REQUIRED MODULE)
Teresa Charlinad1b3d72023-03-14 12:10:28 +000072if (BUILD_CLASSIC_DELEGATE)
73 target_link_libraries(armnnDelegate PUBLIC ${TfLite_LIB})
Sadik Armagan3c24f432020-10-19 17:35:30 +010074
Teresa Charlinad1b3d72023-03-14 12:10:28 +000075 # lpthread and ldl are not required for Android
76 if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL Android)
77 target_link_libraries(armnnDelegate PUBLIC -lpthread)
78 target_link_libraries(armnnDelegate PUBLIC -ldl)
79 endif()
Keith Davisd62eef92021-09-20 18:17:33 +010080endif()
Teresa Charlinad1b3d72023-03-14 12:10:28 +000081if (BUILD_OPAQUE_DELEGATE)
82 target_link_libraries(armnnOpaqueDelegate PUBLIC ${TfLite_LIB})
Keith Davisd62eef92021-09-20 18:17:33 +010083
Teresa Charlinad1b3d72023-03-14 12:10:28 +000084 # lpthread and ldl are not required for Android
85 if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL Android)
86 target_link_libraries(armnnOpaqueDelegate PUBLIC -lpthread)
87 target_link_libraries(armnnOpaqueDelegate PUBLIC -ldl)
88 endif()
89endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +010090
Narumol Prangnawarat4cf0fe32020-12-18 16:13:06 +000091# Add libraries from armnn third-party libraries
92# Third-party header files are not warning clean
93# We can't change compilation flags on header files directly, so we need to add them to an interface library first
94add_library(thirdparty_headers INTERFACE)
95target_include_directories(thirdparty_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/third-party>
96 $<INSTALL_INTERFACE:include/thirdparty_headers>)
97
98target_compile_options(thirdparty_headers INTERFACE -Wno-old-style-cast)
Teresa Charlinad1b3d72023-03-14 12:10:28 +000099if (BUILD_CLASSIC_DELEGATE)
100 target_link_libraries(armnnDelegate PUBLIC thirdparty_headers)
101endif()
102if (BUILD_OPAQUE_DELEGATE)
103 target_link_libraries(armnnOpaqueDelegate PUBLIC thirdparty_headers)
104endif()
Narumol Prangnawarat4cf0fe32020-12-18 16:13:06 +0000105
Jim Flynnfca233e2021-09-23 12:16:53 +0100106add_library(profiling_library_headers INTERFACE)
107target_include_directories(profiling_library_headers INTERFACE $<BUILD_INTERFACE:${ARMNN_SOURCE_DIR}/profiling>
108 $<INSTALL_INTERFACE:include/profiling_library_headers>)
Jim Flynnfca233e2021-09-23 12:16:53 +0100109
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000110if (BUILD_CLASSIC_DELEGATE)
111 target_link_libraries(armnnDelegate PUBLIC profiling_library_headers)
112 target_link_libraries(armnnDelegate PUBLIC Armnn::armnnUtils)
Matthew Sloyanac001ee2021-02-03 10:43:04 +0000113
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000114 set_target_properties(armnnDelegate PROPERTIES VERSION ${DELEGATE_LIB_VERSION} SOVERSION ${DELEGATE_LIB_SOVERSION})
115endif()
116if (BUILD_OPAQUE_DELEGATE)
117 target_link_libraries(armnnOpaqueDelegate PUBLIC profiling_library_headers)
118 target_link_libraries(armnnOpaqueDelegate PUBLIC Armnn::armnnUtils)
119
120 set_target_properties(armnnOpaqueDelegate PROPERTIES VERSION ${OPAQUE_DELEGATE_LIB_VERSION} SOVERSION ${OPAQUE_DELEGATE_LIB_SOVERSION})
121endif()
122
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100123if(BUILD_UNIT_TESTS)
124 set(commonDelegate_unittest_sources)
125 list(APPEND commonDelegate_unittest_sources
126 common/src/test/DelegateTestInterpreter.hpp
127 common/src/test/DelegateTestInterpreterUtils.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000128 test/ActivationTest.cpp
129 test/ActivationTestHelper.hpp
130 test/ArgMinMaxTest.cpp
131 test/ArgMinMaxTestHelper.hpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000132 test/BatchMatMulTest.cpp
133 test/BatchMatMulTestHelper.hpp
134 test/BatchSpaceTest.cpp
135 test/BatchSpaceTestHelper.hpp
136 test/CastTest.cpp
137 test/CastTestHelper.hpp
138 test/ComparisonTest.cpp
139 test/ComparisonTestHelper.hpp
140 test/ControlTest.cpp
141 test/ControlTestHelper.hpp
142 test/Convolution2dTest.cpp
143 test/Convolution3dTest.cpp
144 test/ConvolutionTestHelper.hpp
145 test/DelegateOptionsTest.cpp
146 test/DelegateOptionsTestHelper.hpp
147 test/DepthwiseConvolution2dTest.cpp
148 test/ElementwiseBinaryTest.cpp
149 test/ElementwiseBinaryTestHelper.hpp
150 test/ElementwiseUnaryTest.cpp
151 test/ElementwiseUnaryTestHelper.hpp
152 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
185 test/RoundTest.cpp
186 test/RoundTestHelper.hpp
187 test/SoftmaxTest.cpp
188 test/SoftmaxTestHelper.hpp
189 test/SpaceDepthTest.cpp
190 test/SpaceDepthTestHelper.hpp
191 test/ShapeTest.cpp
192 test/ShapeTestHelper.hpp
193 test/SliceTest.cpp
194 test/SliceTestHelper.hpp
195 test/StridedSliceTest.cpp
196 test/StridedSliceTestHelper.hpp
197 test/SplitTest.cpp
198 test/SplitTestHelper.hpp
199 test/TestUtils.hpp
200 test/TestUtils.cpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100201 test/TransposeConvolution2dTest.cpp
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000202 test/TransposeTest.cpp
203 test/TransposeTestHelper.hpp
204 test/UnidirectionalSequenceLstmTest.cpp
205 test/UnidirectionalSequenceLstmTestHelper.hpp
206 test/UnpackTest.cpp
207 test/UnpackTestHelper.hpp)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100208
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100209 # There's a known Android NDK bug which causes a subset of NeonLayerTests to
210 # fail. We'll exclude these tests in NeonLayerTests_NDK_Bug.cpp if we're doing
211 # a debug build and NDK is less than r21.
212 # https://github.com/android/ndk/issues/1135
Keith Davis7c67fab2021-04-08 11:47:23 +0100213
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100214 # Default to always including these tests.
215 set(INCLUDE_NDK_BUG_TESTS "ON")
216 # Reconsider if we in a debug build.
217 string( TOLOWER ${CMAKE_BUILD_TYPE} BUILD_TYPE_LOWERCASE )
218 if ( NOT BUILD_TYPE_LOWERCASE STREQUAL "release" )
219 message("CMAKE:: BUILD TYPE IS ${CMAKE_BUILD_TYPE}")
220 # And NDK_VERSION has been set.
221 if ( DEFINED NDK_VERSION )
222 message("CMAKE:: NDK DEFINED")
223 # And the version is less than r21.
224 if ( ${NDK_VERSION} STRLESS "r21" )
225 message("CMAKE:: BUG TESTS OFF")
226 set(INCLUDE_NDK_BUG_TESTS "OFF")
Keith Davis7c67fab2021-04-08 11:47:23 +0100227 endif()
228 endif()
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100229 endif()
Keith Davis7c67fab2021-04-08 11:47:23 +0100230
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100231 if ( INCLUDE_NDK_BUG_TESTS STREQUAL "ON" )
232 list(APPEND commonDelegate_unittest_sources
233 test/NeonDelegateTests_NDK_Issue.cpp)
234 endif()
Keith Davis7c67fab2021-04-08 11:47:23 +0100235
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100236 if (BUILD_CLASSIC_DELEGATE)
237 set(classicDelegate_unittest_sources)
238 list(APPEND classicDelegate_unittest_sources
239 classic/src/test/ArmnnClassicDelegateTest.cpp
240 classic/src/test/DelegateTestInterpreter.cpp)
241
242 add_executable(DelegateUnitTests ${commonDelegate_unittest_sources} ${classicDelegate_unittest_sources})
Keith Davis7c67fab2021-04-08 11:47:23 +0100243
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000244 target_include_directories(DelegateUnitTests SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}")
Matthew Sloyanebe392d2023-03-30 10:12:08 +0100245 target_include_directories(DelegateUnitTests SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/common/src/test")
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100246 target_include_directories(DelegateUnitTests PUBLIC ${PROJECT_SOURCE_DIR})
Sadik Armagan3c24f432020-10-19 17:35:30 +0100247
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000248 # Add half library from armnn third-party libraries
249 target_link_libraries(DelegateUnitTests PRIVATE thirdparty_headers)
Ryan OSheaac9607f2023-04-03 11:33:33 +0100250 target_link_libraries(DelegateUnitTests PRIVATE armnnDelegate)
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000251 target_link_libraries(DelegateUnitTests PRIVATE Armnn::armnnUtils)
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000252 target_link_libraries(DelegateUnitTests PRIVATE profiling_library_headers)
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100253 endif()
254
255 if (BUILD_OPAQUE_DELEGATE)
256 set(opaqueDelegate_unittest_sources)
257 list(APPEND opaqueDelegate_unittest_sources
258 common/src/test/DelegateTestInterpreter.hpp
259 common/src/test/DelegateTestInterpreterUtils.hpp
260 opaque/src/test/ArmnnOpaqueDelegateTest.cpp
261 opaque/src/test/DelegateTestInterpreter.cpp
Matthew Sloyan0bd4c622023-04-27 11:48:26 +0100262 test/ActivationTest.cpp
263 test/ActivationTestHelper.hpp
John Mcloughlin559d9092023-04-26 20:14:47 +0100264 test/ArgMinMaxTest.cpp
265 test/ArgMinMaxTestHelper.hpp
John Mcloughlin0422cf22023-04-27 16:55:00 +0100266 test/BatchMatMulTest.cpp
267 test/BatchMatMulTestHelper.hpp
Kevin May81b66f32023-04-26 14:55:36 +0100268 test/BatchSpaceTest.cpp
269 test/BatchSpaceTestHelper.hpp
Ryan OSheaa37ccb02023-04-11 10:54:07 +0100270 test/CastTest.cpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100271 test/CastTestHelper.hpp
Matthew Sloyan2b04ec32023-04-26 11:42:46 +0100272 test/ComparisonTest.cpp
273 test/ComparisonTestHelper.hpp
274 test/ControlTest.cpp
275 test/ControlTestHelper.hpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100276 test/Convolution2dTest.cpp
Francis Murtagh3a9e7ba2023-04-26 15:58:39 +0100277 test/Convolution3dTest.cpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100278 test/ConvolutionTestHelper.hpp
279 test/DepthwiseConvolution2dTest.cpp
Teresa Charlinf69ae562023-04-27 14:42:23 +0100280 test/ElementwiseUnaryTestHelper.hpp
281 test/ElementwiseUnaryTest.cpp
Matthew Sloyan0bd4c622023-04-27 11:48:26 +0100282 test/FullyConnectedTest.cpp
283 test/FullyConnectedTestHelper.hpp
Kevin Mayb2831c52023-04-26 17:27:24 +0100284 test/GatherTest.cpp
285 test/GatherTestHelper.hpp
286 test/GatherNdTest.cpp
287 test/GatherNdTestHelper.hpp
Matthew Sloyan48ec8132023-04-27 17:04:47 +0100288 test/LstmTest.cpp
289 test/LstmTestHelper.hpp
Teresa Charlinf69ae562023-04-27 14:42:23 +0100290 test/LogicalTest.cpp
291 test/LogicalTestHelper.hpp
292 test/NormalizationTest.cpp
293 test/NormalizationTestHelper.hpp
Matthew Sloyan48ec8132023-04-27 17:04:47 +0100294 test/Pooling2dTest.cpp
295 test/Pooling2dTestHelper.hpp
296 test/Pooling3dTest.cpp
297 test/Pooling3dTestHelper.hpp
Matthew Sloyan0bd4c622023-04-27 11:48:26 +0100298 test/PreluTest.cpp
299 test/PreluTestHelper.hpp
Matthew Sloyan48ec8132023-04-27 17:04:47 +0100300 test/RoundTest.cpp
301 test/RoundTestHelper.hpp
John Mcloughlin0422cf22023-04-27 16:55:00 +0100302 test/ShapeTest.cpp
303 test/ShapeTestHelper.hpp
Matthew Sloyan080ffd82023-04-24 12:53:04 +0100304 test/TestUtils.hpp
Francis Murtagh3a9e7ba2023-04-26 15:58:39 +0100305 test/TestUtils.cpp
306 test/TransposeConvolution2dTest.cpp)
Matthew Sloyan65c21a12023-04-04 12:06:14 +0100307
308 # Until all operators are supported, we have to add tests one by one above to opaqueDelegate_unittest_sources.
309 # After we add can add commonDelegate_unittest_sources to the add_executable below.
310 add_executable(OpaqueDelegateUnitTests ${opaqueDelegate_unittest_sources})
311
312 target_include_directories(OpaqueDelegateUnitTests SYSTEM PRIVATE "${TF_LITE_SCHEMA_INCLUDE_PATH}")
313 target_include_directories(OpaqueDelegateUnitTests SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/common/src/test")
314 target_include_directories(OpaqueDelegateUnitTests PUBLIC ${PROJECT_SOURCE_DIR})
315
316 # Add half library from armnn third-party libraries
317 target_link_libraries(OpaqueDelegateUnitTests PRIVATE thirdparty_headers)
318 target_link_libraries(OpaqueDelegateUnitTests PRIVATE armnnOpaqueDelegate)
319 target_link_libraries(OpaqueDelegateUnitTests PRIVATE Armnn::armnnUtils)
320 target_link_libraries(OpaqueDelegateUnitTests PRIVATE profiling_library_headers)
321 endif()
Sadik Armagan4189cc52020-11-11 18:01:48 +0000322endif()
Sadik Armagan3c24f432020-10-19 17:35:30 +0100323
Jan Eilersa96489a2021-12-08 10:05:47 +0000324if(BUILD_DELEGATE_JNI_INTERFACE)
325 add_subdirectory(armnnDelegateJNI)
326endif()
327
Sadik Armagan3c24f432020-10-19 17:35:30 +0100328####################################################
329## Export targets
330set(armnn_delegate_export_targets)
331list(APPEND armnn_delegate_export_targets
Teresa Charlinad1b3d72023-03-14 12:10:28 +0000332 armnnClassicDelegateObject
Finn Williams6f9f9902020-11-13 13:23:15 +0000333 armnnDelegate
334 tflite_headers
Jan Eilersc837f1e2021-11-08 10:19:31 +0000335 flatbuffer_headers
336 profiling_library_headers
337 thirdparty_headers)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100338
339install(
340 TARGETS ${armnn_delegate_export_targets}
341 EXPORT armnn-delegate-targets
342 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
343 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
344 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
345
346## Set export alias
347set_target_properties(armnnDelegate
348 PROPERTIES
349 EXPORT_NAME ArmnnDelegate)
350
351## Export target scrips
352install(
353 EXPORT armnn-delegate-targets
354 FILE ArmnnDelegateTargets.cmake
355 NAMESPACE ArmnnDelegate::
356 DESTINATION ${CMAKE_INSTALL_LIBDIR})
357
358## Create ArmnnDelegateConfig.cmake
359include(CMakePackageConfigHelpers)
360set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR})
361message(STATUS "CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_DIR}" )
362message(STATUS "CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}" )
Finn Williamsbbbefec2020-11-25 14:32:42 +0000363SET(Armnn_DIR "${Armnn_DIR}")
364
Sadik Armagan3c24f432020-10-19 17:35:30 +0100365configure_package_config_file(
366 ${CMAKE_CURRENT_LIST_DIR}/cmake/Modules/ArmnnDelegateConfig.cmake.in
367 ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateConfig.cmake
Finn Williamsbbbefec2020-11-25 14:32:42 +0000368 INSTALL_DESTINATION ${INSTALL_CONFIGDIR}
369 PATH_VARS Armnn_DIR)
Sadik Armagan3c24f432020-10-19 17:35:30 +0100370
371## Install ArmNN Delegate config file
372install(
373 FILES
374 ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateConfig.cmake
375 DESTINATION ${INSTALL_CONFIGDIR})
376
377## Export from build tree
378export(
379 EXPORT armnn-delegate-targets
380 FILE ${CMAKE_CURRENT_BINARY_DIR}/ArmnnDelegateTargets.cmake
381 NAMESPACE ArmnnDelegate::)
Sadik Armagan5d03e312020-11-17 16:43:56 +0000382add_library(ArmnnDelegate::ArmnnDelegate ALIAS armnnDelegate)
383
Sadik Armagan3c24f432020-10-19 17:35:30 +0100384
Narumol Prangnawarat50c87d32020-11-09 18:42:11 +0000385####################################################