IVGCVSW-3656 Rename ARMCOMPUTEREF to ARMNNREF
[platform/upstream/armnn.git] / src / backends / reference / CMakeLists.txt
1 #
2 # Copyright © 2017 Arm Ltd. All rights reserved.
3 # SPDX-License-Identifier: MIT
4 #
5
6 if(ARMNNREF)
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
30 else()
31     list(APPEND armnnRefBackend_sources
32         RefBackendId.hpp
33         RefLayerSupport.cpp
34         RefLayerSupport.hpp
35     )
36 endif()
37
38 add_library(armnnRefBackend OBJECT ${armnnRefBackend_sources})
39 target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn)
40 target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils)
41 target_include_directories(armnnRefBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends)