commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/07: cmake: adding a function to allow co


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/07: cmake: adding a function to allow components to reference submodules for display.
Date: Thu, 14 Aug 2014 15:23:29 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit f1c8ab4aff39340da87b82758263c11b4c9a6754
Author: Tom Rondeau <address@hidden>
Date:   Wed Aug 13 16:05:24 2014 -0400

    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.
---
 cmake/Modules/GrComponent.cmake | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cmake/Modules/GrComponent.cmake b/cmake/Modules/GrComponent.cmake
index 5be3e81..031ccd7 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
 ########################################################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]