IVGCVSW-3656 Make the reference backend optional
[platform/upstream/armnn.git] / src / backends / neon / CMakeLists.txt
1 #
2 # Copyright © 2017 Arm Ltd. All rights reserved.
3 # SPDX-License-Identifier: MIT
4 #
5
6 if(ARMCOMPUTENEON)
7     list(APPEND armnnNeonBackend_sources
8         NeonBackend.cpp
9         NeonBackend.hpp
10         NeonBackendId.hpp
11         NeonInterceptorScheduler.hpp
12         NeonInterceptorScheduler.cpp
13         NeonLayerSupport.cpp
14         NeonLayerSupport.hpp
15         NeonRegistryInitializer.cpp
16         NeonTensorHandle.hpp
17         NeonTensorHandleFactory.cpp
18         NeonTensorHandleFactory.hpp
19         NeonTimer.hpp
20         NeonTimer.cpp
21         NeonWorkloadFactory.cpp
22         NeonWorkloadFactory.hpp
23     )
24
25     add_subdirectory(workloads)
26
27     if(BUILD_UNIT_TESTS)
28         add_subdirectory(test)
29     endif()
30
31 else()
32     list(APPEND armnnNeonBackend_sources
33         NeonBackendId.hpp
34         NeonLayerSupport.cpp
35         NeonLayerSupport.hpp
36     )
37 endif()
38
39 add_library(armnnNeonBackend OBJECT ${armnnNeonBackend_sources})
40 target_include_directories(armnnNeonBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn)
41 target_include_directories(armnnNeonBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils)
42 target_include_directories(armnnNeonBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends)