summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroup.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-07-11 04:05:20 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-07-11 04:05:20 (GMT)
commit28b1912aa3eba8427cc3d0a4954f7366fcb338b9 (patch)
tree180a95ccff9004c9e0997c7004ae1a96bb8a5c35 /Source/cmSourceGroup.cxx
parent2e22b70aa2c76ab5c980a566b72d043be0deb670 (diff)
downloadCMake-28b1912aa3eba8427cc3d0a4954f7366fcb338b9.zip
CMake-28b1912aa3eba8427cc3d0a4954f7366fcb338b9.tar.gz
CMake-28b1912aa3eba8427cc3d0a4954f7366fcb338b9.tar.bz2
ENH: add group support and fix borland error
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r--Source/cmSourceGroup.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/Source/cmSourceGroup.cxx b/Source/cmSourceGroup.cxx
index d64ba3e..d4fd306 100644
--- a/Source/cmSourceGroup.cxx
+++ b/Source/cmSourceGroup.cxx
@@ -23,10 +23,17 @@ public:
};
//----------------------------------------------------------------------------
-cmSourceGroup::cmSourceGroup(const char* name, const char* regex): Name(name)
+cmSourceGroup::cmSourceGroup(const char* name, const char* regex,
+ const char* parentName): Name(name)
{
this->Internal = new cmSourceGroupInternals;
this->SetGroupRegex(regex);
+ if(parentName)
+ {
+ this->FullName = parentName;
+ this->FullName += "\\";
+ }
+ this->FullName += this->Name;
}
//----------------------------------------------------------------------------
@@ -39,6 +46,7 @@ cmSourceGroup::~cmSourceGroup()
cmSourceGroup::cmSourceGroup(cmSourceGroup const& r)
{
this->Name = r.Name;
+ this->FullName = r.FullName;
this->GroupRegex = r.GroupRegex;
this->GroupFiles = r.GroupFiles;
this->SourceFiles = r.SourceFiles;
@@ -80,6 +88,12 @@ const char* cmSourceGroup::GetName() const
{
return this->Name.c_str();
}
+
+//----------------------------------------------------------------------------
+const char* cmSourceGroup::GetFullName() const
+{
+ return this->FullName.c_str();
+}
//----------------------------------------------------------------------------
bool cmSourceGroup::MatchesRegex(const char* name)