summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-20 15:17:49 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-04-20 15:17:49 +0200
commit30e78a532aed26ff3b8d2ad035dd85cc0ea8193a (patch)
tree315b7813372d7cb1e768e5641949da024f5516e0
parenta3c312ece0a77310a9d8ecde1dd0f1267646f4ff (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>
-rw-r--r--cmake/cmake.d/03-macros.cmake2
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)