diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-04-20 15:17:49 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:48 +0200 |
commit | 31cdee66f7f7d5044a33929259cd283457765c8c (patch) | |
tree | 9fbce48aca46565401b625265e0ee47f6ccb54df /cmake/cmake.d/03-macros.cmake | |
parent | 4283d79e3733d98b79d6e1b4d0ad1b9aee0caab5 (diff) |
Adding cmake file at the root directory
It may be needed to include additionnal files from the root dir
as populate and remote_target_populate targets are created
at inclusion parts you can't adds target using app-template
macros after the config.cmake first inclusion.
Change-Id: I92a98d997aa239ab56183da8dc95f6db993c17a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/03-macros.cmake')
-rw-r--r-- | cmake/cmake.d/03-macros.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake index 61fc0dc..c189bd6 100644 --- a/cmake/cmake.d/03-macros.cmake +++ b/cmake/cmake.d/03-macros.cmake @@ -520,6 +520,8 @@ macro(project_subdirs_add) foreach(filename ${filelist}) if(EXISTS "${filename}/CMakeLists.txt") add_subdirectory(${filename}) + elseif(${filename} MATCHES "^.*cmake$") + include(${filename}) endif(EXISTS "${filename}/CMakeLists.txt") endforeach() endmacro(project_subdirs_add) |