diff options
author | Brad King <brad.king@kitware.com> | 2001-08-01 20:14:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-08-01 20:14:16 (GMT) |
commit | 8a03ccda075da86e9dcfc3ad5286aa0793d87619 (patch) | |
tree | ad846f627db9aa6206b1d1ca61262dbe0ff2ab6d /Source/cmMakefile.h | |
parent | fda98f856286aa5622e1fc00d7ef32196e04e9b5 (diff) | |
download | CMake-8a03ccda075da86e9dcfc3ad5286aa0793d87619.zip CMake-8a03ccda075da86e9dcfc3ad5286aa0793d87619.tar.gz CMake-8a03ccda075da86e9dcfc3ad5286aa0793d87619.tar.bz2 |
ENH: Added SUBDIR_DEPENDS command and corresponding support code. This command allows specification that a set of subdirectories be built before a particular directory.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 88acddb..78e42c7 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -199,6 +199,11 @@ public: void AddSubDirectory(const char*); /** + * Add a subdirectory dependency. + */ + void AddSubdirDependency(const char* subdir, const char* dependency); + + /** * Add an include directory to the build. */ void AddIncludeDirectory(const char*); @@ -381,6 +386,14 @@ public: } /** + * Get the subdirectory dependencies for the given subdirectory. + */ + const std::set<std::string>& GetSubdirDepends(const char* subdir) + { + return m_SubdirDepends[subdir]; + } + + /** * Get a list of include directories in the build. */ std::vector<std::string>& GetIncludeDirectories() @@ -523,6 +536,7 @@ protected: SourceMap m_Sources; std::vector<std::string> m_SubDirectories; // list of sub directories + std::map<std::string, std::set<std::string> > m_SubdirDepends; // The include and link-library paths. These may have order // dependency, so they must be vectors (not set). |