From 1f6ca4d1ded3146f1e358007528d9f1ab2b522ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 20 Oct 2017 05:37:37 +0200 Subject: some nonsense --- cmake/opentrack-boilerplate.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cmake') 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() -- cgit v1.2.3