blob: f6f69bd11e0762d4911a80416edad202c4b770de [file] [log] [blame]
David Beck10b4dfd2018-09-19 12:03:20 +01001#
2# Copyright © 2017 Arm Ltd. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5
6add_subdirectory(${PROJECT_SOURCE_DIR}/src/backends)
7list(APPEND armnnLibraries armnnBackendsCommon)
8
9# single place to use wildcards, so we can include
David Beck711fa312018-09-24 10:46:38 +010010# yet unknown backend modules and corresponding common libraries
11FILE(GLOB commonIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/common.cmake)
David Beck10b4dfd2018-09-19 12:03:20 +010012FILE(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake)
13
David Beck711fa312018-09-24 10:46:38 +010014# prefer to include common code first so backends can depend on them
David Beck0dbe0ee2018-09-24 15:59:27 +010015foreach(includeFile ${commonIncludes} ${backendIncludes})
16 message("Including backend into the build: ${includeFile}")
17 include(${includeFile})
David Beck10b4dfd2018-09-19 12:03:20 +010018endforeach()