diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:29:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-03-14 16:29:15 (GMT) |
commit | 791aa6052b9033e89645b324b1c99222936981df (patch) | |
tree | fdd95f48321d8074e4c97eaba0b03da3e885d409 /Source/cmMakefile.h | |
parent | f7c024df2a2ae6b8cf5ba127ee764a55f81f06e6 (diff) | |
download | CMake-791aa6052b9033e89645b324b1c99222936981df.zip CMake-791aa6052b9033e89645b324b1c99222936981df.tar.gz CMake-791aa6052b9033e89645b324b1c99222936981df.tar.bz2 |
ENH: add support for out of source source
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index a9f159c..2fed10d 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -24,6 +24,8 @@ #include "cmListFileCache.h" #include "cmCacheManager.h" +#include "cmSubDirectory.h" + #include <cmsys/RegularExpression.hxx> class cmFunctionBlocker; @@ -212,6 +214,8 @@ public: * Add a subdirectory to the build. */ void AddSubDirectory(const char*, bool includeTopLevel=true, bool preorder = false); + void AddSubDirectory(const char* fullSrcDir,const char *fullBinDir, + bool includeTopLevel=true, bool preorder = false); /** * Add an include directory to the build. @@ -416,7 +420,7 @@ public: /** * Get a list of the build subdirectories. */ - const std::vector<std::pair<cmStdString, bool> >& GetSubDirectories() + const std::vector<cmSubDirectory>& GetSubDirectories() { return m_SubDirectories; } @@ -653,9 +657,6 @@ public: */ std::string GetModulesFile(const char* name); - ///! Return true if the directory is preorder. - bool IsDirectoryPreOrder(const char* dir); - ///! Set/Get a property of this directory void SetProperty(const char *prop, const char *value); const char *GetProperty(const char *prop) const; @@ -683,7 +684,8 @@ protected: cmTargets m_Targets; std::vector<cmSourceFile*> m_SourceFiles; - std::vector<std::pair<cmStdString, bool> > m_SubDirectories; // list of sub directories + // list of sub directories + std::vector<cmSubDirectory> m_SubDirectories; struct StringSet : public std::set<cmStdString> { }; @@ -712,10 +714,9 @@ protected: private: /** - * Get the name of the parent directories CMakeLists file - * given a current CMakeLists file name + * Get the name of the parent generator's CMakeLists file */ - std::string GetParentListFileName(const char *listFileName); + std::string GetParentListFileName(); void ReadSources(std::ifstream& fin, bool t); friend class cmMakeDepend; // make depend needs direct access |