Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2021 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | # armnnTestUtils library provides useful test functions for backend developers. |
| 7 | set(armnnTestUtils_sources) |
| 8 | list(APPEND armnnTestUtils_sources |
| 9 | ../../include/armnnTestUtils/DataLayoutUtils.hpp |
| 10 | ../../include/armnnTestUtils/LayerTestResult.hpp |
| 11 | ../../include/armnnTestUtils/PredicateResult.hpp |
| 12 | ../../include/armnnTestUtils/TensorCopyUtils.hpp |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame^] | 13 | ../../include/armnnTestUtils/WorkloadTestUtils.hpp |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 14 | TensorHelpers.hpp |
| 15 | CreateWorkload.hpp |
| 16 | CommonTestUtils.cpp |
| 17 | CommonTestUtils.hpp |
| 18 | DataTypeUtils.hpp |
| 19 | GraphUtils.cpp |
| 20 | GraphUtils.hpp |
| 21 | TensorCopyUtils.cpp |
| 22 | TestUtils.cpp |
| 23 | TestUtils.hpp |
| 24 | UnitTests.cpp |
| 25 | UnitTests.hpp |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 26 | ) |
| 27 | |
| 28 | add_library_ex(armnnTestUtils SHARED ${armnnTestUtils_sources}) |
| 29 | |
| 30 | set_target_properties(armnnTestUtils PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 31 | |
| 32 | target_include_directories(armnnTestUtils |
| 33 | PUBLIC |
| 34 | $<INSTALL_INTERFACE:include> |
| 35 | $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> |
| 36 | PRIVATE |
| 37 | ${CMAKE_CURRENT_SOURCE_DIR}/src) |
| 38 | |
| 39 | target_include_directories(armnnTestUtils PRIVATE ../armnn) |
| 40 | target_include_directories(armnnTestUtils PRIVATE ../armnnUtils) |
| 41 | target_include_directories(armnnTestUtils PRIVATE ../backends) |
| 42 | target_include_directories(armnnTestUtils PRIVATE ../profiling) |
| 43 | |
| 44 | install(TARGETS armnnTestUtils |
| 45 | EXPORT armnn-targets |
| 46 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 47 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 48 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 49 | |
| 50 | add_library(Armnn::armnnTestUtils ALIAS armnnTestUtils) |