summaryrefslogtreecommitdiff
path: root/Source/cmXCodeObject.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-04 17:58:58 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-04 17:58:58 -0500
commit8659d1206b1cc0ef39347f9dc70f84002652e46f (patch)
tree37718f57e2ddb64f7d6059175361b7ae6c7fd635 /Source/cmXCodeObject.h
parentf6e8b36dcba508fc8710a94ca2e4e8698bbd11d3 (diff)
downloadcmake-8659d1206b1cc0ef39347f9dc70f84002652e46f.tar.gz
ENH: this version can build cmake
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r--Source/cmXCodeObject.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h
index e20631f182..61cda1632f 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;
};