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>
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)