IVGCVSW-2058: Remove ARMCOMPUTE(CL/NEON)_ENABLED and ARMCOMPUTENEON_ENABLED from...
[platform/upstream/armnn.git] / src / backends / cl / CMakeLists.txt
1 #
2 # Copyright © 2017 Arm Ltd. All rights reserved.
3 # SPDX-License-Identifier: MIT
4 #
5
6 if(ARMCOMPUTECL)
7     list(APPEND armnnClBackend_sources
8         ClBackend.cpp
9         ClBackend.hpp
10         ClBackendId.hpp
11         ClContextControl.cpp
12         ClContextControl.hpp
13         ClLayerSupport.cpp
14         ClLayerSupport.hpp
15         ClTensorHandle.hpp
16         ClWorkloadFactory.cpp
17         ClWorkloadFactory.hpp
18         OpenClTimer.cpp
19         OpenClTimer.hpp
20     )
21
22     add_subdirectory(workloads)
23
24     if(BUILD_UNIT_TESTS)
25         add_subdirectory(test)
26     endif()
27
28 else()
29     list(APPEND armnnClBackend_sources
30         ClBackendId.hpp
31         ClContextControl.cpp
32         ClContextControl.hpp
33         ClLayerSupport.cpp
34         ClLayerSupport.hpp
35         ClWorkloadFactory.cpp
36         ClWorkloadFactory.hpp
37     )
38 endif()
39
40 add_library(armnnClBackend OBJECT ${armnnClBackend_sources})
41 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src)
42 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn)
43 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils)