diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 36c8d666..d3becd56 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -266,3 +266,14 @@ function(otr_prop type) endwhile() endforeach() endfunction() + +function(otr_add_target_dirs var) + set(globs "") + foreach(k ${ARGN}) + list(APPEND globs "${k}/CMakeLists.txt") + endforeach() + set(projects "") + file(GLOB projects ${globs}) + list(SORT projects) + set("${var}" "${projects}" PARENT_SCOPE) +endfunction() |