summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroup.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
commitde10cfc72e51094d3a8f3a8d10f09a902330a2f3 (patch)
tree19175a07cd503bb427d1f394dc9a7d555b28246f /Source/cmSourceGroup.cxx
parent33e1a4a09aaedfcb869e2f4217815e09f0d3187f (diff)
downloadCMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.zip
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.gz
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.bz2
ENH: move testing stuff to cmake from configure, good bye dashboard... :)
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r--Source/cmSourceGroup.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx
index 8935a07..1ae771c 100644
--- a/Source/cmSourceGroup.cxx
+++ b/Source/cmSourceGroup.cxx
@@ -122,6 +122,24 @@ void cmSourceGroup::AddCustomCommand(const cmCustomCommand &cmd)
commandFiles.m_Outputs.insert(cmd.GetOutputs().begin(), cmd.GetOutputs().end());
}
+void cmSourceGroup::Print() const
+{
+ std::cout << "cmSourceGroup: " << m_Name.c_str() << "\n";
+ for(BuildRules::const_iterator i = m_BuildRules.begin();
+ i != m_BuildRules.end(); ++i)
+ {
+ std::cout << "BuildRule: " << i->first.c_str() << "\n";
+ for(Commands::const_iterator j = i->second.begin();
+ j != i->second.end(); ++j)
+ {
+ std::cout << "Command: " << j->first.c_str() << "\n";
+ std::cout << "Command Outputs " << j->second.m_Outputs.size() << "\n";
+ std::cout << "Command Depends " << j->second.m_Depends.size() << "\n";
+ }
+ }
+}
+
+
void cmSourceGroup::CommandFiles::Merge(const CommandFiles &r)
{
std::set<std::string>::const_iterator dep = r.m_Depends.begin();
@@ -137,3 +155,4 @@ void cmSourceGroup::CommandFiles::Merge(const CommandFiles &r)
}
+