blob: ff253787a1e8ae965bb9281f3b70de88fda5b244 [file] [log] [blame]
David Beckb4540be2018-09-24 13:18:27 +01001#
2# Copyright © 2017 Arm Ltd. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
Matteo Martincighe67edb22019-08-14 14:05:46 +01006if(ARMCOMPUTEREF)
7 list(APPEND armnnRefBackend_sources
8 RefBackend.cpp
9 RefBackend.hpp
10 RefBackendId.hpp
11 RefTensorHandle.hpp
12 RefTensorHandle.cpp
13 RefLayerSupport.cpp
14 RefLayerSupport.hpp
15 RefMemoryManager.hpp
16 RefMemoryManager.cpp
17 RefRegistryInitializer.cpp
18 RefWorkloadFactory.cpp
19 RefWorkloadFactory.hpp
20 RefTensorHandleFactory.cpp
21 RefTensorHandleFactory.hpp
22 )
23
24 add_subdirectory(workloads)
25
26 if(BUILD_UNIT_TESTS)
27 add_subdirectory(test)
28 endif()
29
30else()
31 list(APPEND armnnRefBackend_sources
32 RefBackendId.hpp
33 RefLayerSupport.cpp
34 RefLayerSupport.hpp
35 )
36endif()
David Beckb4540be2018-09-24 13:18:27 +010037
David Beck3cc9a622018-10-12 10:38:31 +010038add_library(armnnRefBackend OBJECT ${armnnRefBackend_sources})
David Beckb4540be2018-09-24 13:18:27 +010039target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn)
40target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils)
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +000041target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends)