diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-04 20:03:34 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:20 +0200 |
commit | 489f592ccb0b124e709ff26e16da1f745b029032 (patch) | |
tree | 90659c16502c079962ec24a73a8c6032380f63fc /reference | |
parent | 6a98f8143634a9d6e41457657634d209cc303cf0 (diff) |
Use optional pattern argument to search under subdirs
Change-Id: Ic24dee22f0e8353cc7bc9fb6a4698d4d7d762412
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference')
-rw-r--r-- | reference/etc/macros.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake index 046be7a..a002d95 100644 --- a/reference/etc/macros.cmake +++ b/reference/etc/macros.cmake @@ -112,7 +112,12 @@ macro(project_package_build) endmacro(project_package_build) macro(project_subdirs_add) - file(GLOB filelist "*") + if(${ARGV0}) + file(GLOB filelist "${ARGV0}") + else() + file(GLOB filelist "*") + endif(${ARGV0}) + foreach(filename ${filelist}) if(EXISTS "${filename}/CMakeLists.txt") add_subdirectory(${filename}) |