Francis Murtagh | 9270d9e | 2022-08-12 13:54:17 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2022 Arm Ltd and Contributors. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | include_directories(SYSTEM ${FLATBUFFERS_INCLUDE_PATH}) |
Matthew Sloyan | da824cc | 2022-10-10 12:43:20 +0100 | [diff] [blame] | 7 | include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/third-party/half) |
Francis Murtagh | 9270d9e | 2022-08-12 13:54:17 +0100 | [diff] [blame] | 8 | include_directories(SYSTEM ${TOSA_SERIALIZATION_LIB_INCLUDE}) |
Matthew Sloyan | d646b55 | 2022-10-10 12:42:16 +0100 | [diff] [blame] | 9 | include_directories(SYSTEM ${TOSA_REFERENCE_MODEL_INCLUDE}) |
Francis Murtagh | 9270d9e | 2022-08-12 13:54:17 +0100 | [diff] [blame] | 10 | |
| 11 | if(ARMNNTOSAREF) |
| 12 | list(APPEND armnnTosaRefBackend_sources |
| 13 | TosaRefBackend.cpp |
| 14 | TosaRefBackend.hpp |
| 15 | TosaRefBackendId.hpp |
| 16 | TosaRefTensorHandle.hpp |
| 17 | TosaRefTensorHandle.cpp |
| 18 | TosaRefLayerSupport.cpp |
| 19 | TosaRefLayerSupport.hpp |
| 20 | TosaRefMemoryManager.hpp |
| 21 | TosaRefMemoryManager.cpp |
| 22 | TosaRefRegistryInitializer.cpp |
| 23 | TosaRefWorkloadFactory.cpp |
| 24 | TosaRefWorkloadFactory.hpp |
| 25 | TosaRefTensorHandleFactory.cpp |
| 26 | TosaRefTensorHandleFactory.hpp |
| 27 | ) |
| 28 | |
| 29 | add_subdirectory(workloads) |
| 30 | |
| 31 | if(BUILD_UNIT_TESTS) |
| 32 | add_subdirectory(test) |
| 33 | endif() |
| 34 | |
| 35 | else() |
| 36 | list(APPEND armnnTosaRefBackend_sources |
| 37 | TosaRefBackendId.hpp |
| 38 | ) |
| 39 | endif() |
| 40 | |
| 41 | add_library(armnnTosaRefBackend OBJECT ${armnnTosaRefBackend_sources}) |
Mike Kelly | 8107ccc | 2022-12-13 10:34:25 +0000 | [diff] [blame^] | 42 | set_target_properties(armnnTosaRefBackend PROPERTIES LINKER_LANGUAGE CXX) |
Francis Murtagh | 9270d9e | 2022-08-12 13:54:17 +0100 | [diff] [blame] | 43 | target_include_directories(armnnTosaRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn) |
| 44 | target_include_directories(armnnTosaRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils) |
| 45 | target_include_directories(armnnTosaRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends) |
| 46 | target_include_directories(armnnTosaRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends/tosaCommon) |