diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-04 22:58:58 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-04 22:58:58 (GMT) |
commit | 8659d1206b1cc0ef39347f9dc70f84002652e46f (patch) | |
tree | 37718f57e2ddb64f7d6059175361b7ae6c7fd635 /Source/cmXCodeObject.h | |
parent | f6e8b36dcba508fc8710a94ca2e4e8698bbd11d3 (diff) | |
download | CMake-8659d1206b1cc0ef39347f9dc70f84002652e46f.zip CMake-8659d1206b1cc0ef39347f9dc70f84002652e46f.tar.gz CMake-8659d1206b1cc0ef39347f9dc70f84002652e46f.tar.bz2 |
ENH: this version can build cmake
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index e20631f..61cda16 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -64,6 +64,29 @@ public: } return 0; } + // serach the attribute list for an object of the specified type + cmXCodeObject* GetObject(cmXCodeObject::PBXType t) + { + for(std::vector<cmXCodeObject*>::iterator i = m_List.begin(); + i != m_List.end(); ++i) + { + cmXCodeObject* o = *i; + if(o->m_IsA == t) + { + return o; + } + } + return 0; + } + + cmXCodeObject* GetPBXTargetDependency() + { + return m_PBXTargetDependency; + } + void SetPBXTargetDependency(cmXCodeObject* d) + { + m_PBXTargetDependency = d; + } private: cmTarget* m_cmTarget; @@ -72,6 +95,7 @@ private: PBXType m_IsA; cmStdString m_String; cmXCodeObject* m_Object; + cmXCodeObject* m_PBXTargetDependency; std::vector<cmXCodeObject*> m_List; std::map<cmStdString, cmXCodeObject*> m_ObjectAttributes; }; |