diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-17 22:54:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-17 22:54:14 (GMT) |
commit | e9300434776a64567a65b6d414bcf98614321ba2 (patch) | |
tree | 94c37f27044ae655262878f5d5b3d90223d1f711 /Source/cmXCodeObject.h | |
parent | 28f2dfb75244339d49e33fafb7103f5774222d2b (diff) | |
download | CMake-e9300434776a64567a65b6d414bcf98614321ba2.zip CMake-e9300434776a64567a65b6d414bcf98614321ba2.tar.gz CMake-e9300434776a64567a65b6d414bcf98614321ba2.tar.bz2 |
ENH: more tests are passing, relative paths, and external objects are the ones left now
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index b1e2997..bd9d6e4 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -49,6 +49,17 @@ public: { m_List.push_back(value); } + bool HasObject(cmXCodeObject* o) + { + return !(std::find(m_List.begin(), m_List.end(), o) == m_List.end()); + } + void AddUniqueObject(cmXCodeObject* value) + { + if(std::find(m_List.begin(), m_List.end(), value) == m_List.end()) + { + m_List.push_back(value); + } + } static void Indent(int level, std::ostream& out); void Print(std::ostream& out); static void PrintList(std::vector<cmXCodeObject*> const&, std::ostream& out); @@ -97,6 +108,14 @@ public: } void CopyAttributes(cmXCodeObject* ); + void AddDependLibrary(const char* l) + { + m_DependLibraries.push_back(l); + } + std::vector<cmStdString> const& GetDependLibraries() + { + return m_DependLibraries; + } private: cmTarget* m_cmTarget; Type m_Type; @@ -106,6 +125,7 @@ private: cmXCodeObject* m_Object; cmXCodeObject* m_PBXTargetDependency; std::vector<cmXCodeObject*> m_List; + std::vector<cmStdString> m_DependLibraries; std::map<cmStdString, cmXCodeObject*> m_ObjectAttributes; }; #endif |