blob: caa8b8a05873ccb65aa82b0b5f572c3b31372dc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#
# Copyright © 2017 Arm Ltd. All rights reserved.
# SPDX-License-Identifier: MIT
#
add_subdirectory(${PROJECT_SOURCE_DIR}/src/backends)
list(APPEND armnnLibraries armnnBackendsCommon)
list(APPEND armnnUnitTestLibraries armnnBackendsCommonUnitTests)
# single place to use wildcards, so we can include
# yet unknown backend modules and corresponding common libraries
FILE(GLOB commonIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/common.cmake)
FILE(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake)
# prefer to include common code first
foreach(includeFile ${commonIncludes})
message("Including backend common library into the build: ${includeFile}")
include(${includeFile})
endforeach()
# now backends can depend on common code included first
foreach(includeFile ${backendIncludes})
message("Including backend into the build: ${includeFile}")
include(${includeFile})
endforeach()
|