summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:37:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-20 05:37:37 +0200
commit1f6ca4d1ded3146f1e358007528d9f1ab2b522ec (patch)
tree5e66aba1ffbe27dbed383e6cbc498b5313504b11 /cmake/opentrack-boilerplate.cmake
parent18b559ff13898e8e96275b7e329bfa23b7394f6f (diff)
some nonsense
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake11
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()