From 31cdee66f7f7d5044a33929259cd283457765c8c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 20 Apr 2018 15:17:49 +0200 Subject: 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 --- cmake/cmake.d/03-macros.cmake | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit 1.2.3-korg