David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | # |
| 5 | |
| 6 | add_subdirectory(${PROJECT_SOURCE_DIR}/src/backends) |
| 7 | list(APPEND armnnLibraries armnnBackendsCommon) |
| 8 | |
| 9 | # single place to use wildcards, so we can include |
David Beck | 711fa31 | 2018-09-24 10:46:38 +0100 | [diff] [blame] | 10 | # yet unknown backend modules and corresponding common libraries |
| 11 | FILE(GLOB commonIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/common.cmake) |
David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 12 | FILE(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake) |
| 13 | |
David Beck | 711fa31 | 2018-09-24 10:46:38 +0100 | [diff] [blame] | 14 | # prefer to include common code first so backends can depend on them |
| 15 | foreach(backendInclude ${commonIncludes} ${backendIncludes}) |
David Beck | 10b4dfd | 2018-09-19 12:03:20 +0100 | [diff] [blame] | 16 | include(${backendInclude}) |
| 17 | endforeach() |