diff options
author | Brad King <brad.king@kitware.com> | 2007-05-28 13:59:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-28 13:59:08 (GMT) |
commit | d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab (patch) | |
tree | 767c7ec525b6777dbb6a300a73c8a717b2eaf0a6 /Source/cmTarget.h | |
parent | 00c9964a8c96e493a6d1d320a7b85f2b705e501c (diff) | |
download | CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.zip CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.tar.gz CMake-d2f62e6ac35a742a762ab6e493cdb4914e6ed1ab.tar.bz2 |
ENH: Made cmTarget::GetSourceLists return a reference to const so that all additions of sources must go through access methods in cmTarget.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 8bb8f9b..454c95d 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -76,7 +76,12 @@ public: /** * Get the list of the source lists used by this target */ - std::vector<std::string> &GetSourceLists() {return this->SourceLists;} + std::vector<std::string> const& GetSourceLists() {return this->SourceLists;} + + void AddSourceListEntry(const char* src) + { this->SourceLists.push_back(src); } + void SetSourceList(std::vector<std::string> const& srcs) + { this->SourceLists = srcs; } ///! Return the list of frameworks being linked to this target std::vector<std::string> &GetFrameworks() {return this->Frameworks;} |