diff options
author | Gusts Kaksis <gusts.kaksis@sonarworks.com> | 2020-10-24 10:41:13 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-11-28 04:36:24 (GMT) |
commit | 5651901c54ac74912110ba0d2395b25a96570326 (patch) | |
tree | 10df62d0144f44027e8bcecb7d34038d85a21706 /Source/cmXCodeObject.h | |
parent | 70f11b9d3c5d2cfd81b2e33cc6c315cd9b2d1473 (diff) | |
download | CMake-5651901c54ac74912110ba0d2395b25a96570326.zip CMake-5651901c54ac74912110ba0d2395b25a96570326.tar.gz CMake-5651901c54ac74912110ba0d2395b25a96570326.tar.bz2 |
Xcode: add support for embedding frameworks
This commit also prepares for embedding things other than
frameworks. In the future, we may want to embed resources and
other types supported by Xcode, so the target properties have
been documented in a way that clearly signals the future intent.
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index 78d4727..ab7f99e 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -81,6 +81,13 @@ public: void SetObject(cmXCodeObject* value) { this->Object = value; } cmXCodeObject* GetObject() { return this->Object; } void AddObject(cmXCodeObject* value) { this->List.push_back(value); } + size_t GetObjectCount() { return this->List.size(); } + void InsertObject(size_t position, cmXCodeObject* value) + { + if (position < GetObjectCount()) { + this->List.insert(this->List.begin() + position, value); + } + } void PrependObject(cmXCodeObject* value) { this->List.insert(this->List.begin(), value); |