blob: c82de8d8e8d0a387be776ec148fe952c90292d53 [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
David Beck10b4dfd2018-09-19 12:03:20 +01006# single place to use wildcards, so we can include
David Beck711fa312018-09-24 10:46:38 +01007# yet unknown backend modules and corresponding common libraries
8FILE(GLOB commonIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/common.cmake)
David Beck10b4dfd2018-09-19 12:03:20 +01009FILE(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake)
10
David Beck3cc9a622018-10-12 10:38:31 +010011# prefer to include common code first
12foreach(includeFile ${commonIncludes})
13 message("Including backend common library into the build: ${includeFile}")
14 include(${includeFile})
15endforeach()
16
17# now backends can depend on common code included first
18foreach(includeFile ${backendIncludes})
David Beck0dbe0ee2018-09-24 15:59:27 +010019 message("Including backend into the build: ${includeFile}")
20 include(${includeFile})
David Beck10b4dfd2018-09-19 12:03:20 +010021endforeach()