diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-08-13 16:05:24 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-08-13 16:05:24 -0400 |
commit | f1c8ab4aff39340da87b82758263c11b4c9a6754 (patch) | |
tree | 76d2be764bd87dc26f3761eb32af1561cbbe7bd0 /cmake/Modules | |
parent | 72201e60692ee9357929d4f726c3373963c5a349 (diff) |
cmake: adding a function to allow components to reference submodules for display.
Mostly designed for gr-audio to print out which audio machines are enabled in the build.
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrComponent.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake index 5be3e8125d..031ccd7faf 100644 --- a/cmake/Modules/GrComponent.cmake +++ b/cmake/Modules/GrComponent.cmake @@ -90,6 +90,12 @@ function(GR_REGISTER_COMPONENT name var) set(_gr_disabled_components ${_gr_disabled_components} CACHE INTERNAL "" FORCE) endfunction(GR_REGISTER_COMPONENT) + +function(GR_APPEND_SUBCOMPONENT name) + list(APPEND _gr_enabled_components "* ${name}") + set(_gr_enabled_components ${_gr_enabled_components} CACHE INTERNAL "" FORCE) +endfunction(GR_APPEND_SUBCOMPONENT name) + ######################################################################## # Print the registered component summary ######################################################################## |