diff options
Diffstat (limited to 'Source/cmSourceGroup.cxx')
-rw-r--r-- | Source/cmSourceGroup.cxx | 16 |
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) |