2 # Copyright © 2017 Arm Ltd. All rights reserved.
3 # SPDX-License-Identifier: MIT
7 find_program(FLATC flatc
9 DOC "Path to 'flatc', the flatbuffers compiler")
11 message(WARNING "flatc not found. Specify the full path of the flatc executable with -DFLATC=<flatc path>")
14 # Updates ClContextSchema_generated.h if changes are made.
15 OUTPUT ClContextSchema_generated.h DEPENDS ClContextSchema.fbs
16 COMMAND ${FLATC} -o ${CMAKE_CURRENT_BINARY_DIR} --cpp ${CMAKE_CURRENT_SOURCE_DIR}/ClContextSchema.fbs
20 list(APPEND armnnClBackend_sources
21 ClContextSchema_generated.h
27 ClBackendModelContext.cpp
28 ClBackendModelContext.hpp
31 ClContextDeserializer.hpp
32 ClContextDeserializer.cpp
33 ClContextSerializer.hpp
34 ClContextSerializer.cpp
37 ClRegistryInitializer.cpp
39 ClTensorHandleFactory.cpp
40 ClTensorHandleFactory.hpp
47 add_subdirectory(workloads)
50 add_subdirectory(test)
53 include_directories(SYSTEM "${FLATBUFFERS_INCLUDE_PATH}")
56 list(APPEND armnnClBackend_sources
63 add_library(armnnClBackend OBJECT ${armnnClBackend_sources})
64 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnn)
65 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/armnnUtils)
66 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/backends)
67 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/src/profiling)
68 target_include_directories(armnnClBackend PRIVATE ${PROJECT_SOURCE_DIR}/profiling/common/include)