diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2021-11-24 15:47:28 +0000 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2021-12-14 11:02:41 +0000 |
commit | a097d2a0ed8e30d5aaf6d29ec18d0c39201b7b67 (patch) | |
tree | 947e587bc42d07f52c55b155308b5ea5bd3ebacd /src/armnnTestUtils/CMakeLists.txt | |
parent | bc14881a76699dd942e94265116da68a6466455e (diff) | |
download | armnn-a097d2a0ed8e30d5aaf6d29ec18d0c39201b7b67.tar.gz |
IVGCVSW-6453 'Move the ArmNN Test Utils code to a physically separate directory'
* Created include/armnnTestUtils directory
* Moved Arm NN test utils files into armnnTestUtils directory
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I03ac54c645c41c52650c4c03b6a58fb1481fef5d
Diffstat (limited to 'src/armnnTestUtils/CMakeLists.txt')
-rwxr-xr-x | src/armnnTestUtils/CMakeLists.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/armnnTestUtils/CMakeLists.txt b/src/armnnTestUtils/CMakeLists.txt new file mode 100755 index 0000000000..3738fad033 --- /dev/null +++ b/src/armnnTestUtils/CMakeLists.txt @@ -0,0 +1,50 @@ +# +# Copyright © 2021 Arm Ltd and Contributors. All rights reserved. +# SPDX-License-Identifier: MIT +# + +# armnnTestUtils library provides useful test functions for backend developers. +set(armnnTestUtils_sources) +list(APPEND armnnTestUtils_sources + ../../include/armnnTestUtils/DataLayoutUtils.hpp + ../../include/armnnTestUtils/LayerTestResult.hpp + ../../include/armnnTestUtils/PredicateResult.hpp + ../../include/armnnTestUtils/TensorCopyUtils.hpp + TensorHelpers.hpp + CreateWorkload.hpp + CommonTestUtils.cpp + CommonTestUtils.hpp + DataTypeUtils.hpp + GraphUtils.cpp + GraphUtils.hpp + TensorCopyUtils.cpp + TestUtils.cpp + TestUtils.hpp + UnitTests.cpp + UnitTests.hpp + WorkloadTestUtils.hpp + ) + +add_library_ex(armnnTestUtils SHARED ${armnnTestUtils_sources}) + +set_target_properties(armnnTestUtils PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) + +target_include_directories(armnnTestUtils + PUBLIC + $<INSTALL_INTERFACE:include> + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/src) + +target_include_directories(armnnTestUtils PRIVATE ../armnn) +target_include_directories(armnnTestUtils PRIVATE ../armnnUtils) +target_include_directories(armnnTestUtils PRIVATE ../backends) +target_include_directories(armnnTestUtils PRIVATE ../profiling) + +install(TARGETS armnnTestUtils + EXPORT armnn-targets + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + +add_library(Armnn::armnnTestUtils ALIAS armnnTestUtils)
\ No newline at end of file |