summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-09 15:53:32 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-09 15:53:32 (GMT)
commit5fc83004761394476f22d38fb75ed69bd6d7b16d (patch)
tree98765948d265b50366e992f1e40883fb0c7a5381 /Source/cmMakefile.h
parent60507258c786eb7b04f9248825659b47dc617c63 (diff)
downloadCMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.zip
CMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.tar.gz
CMake-5fc83004761394476f22d38fb75ed69bd6d7b16d.tar.bz2
ENH: Added utility dependency support. Now a project can depend on other executables as well as link libraries.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 7dee07b..62961e8 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -88,6 +88,16 @@ public:
void AddExecutable(cmClassFile&);
/**
+ * Add a utility on which this project depends.
+ */
+ void AddUtility(const char*);
+
+ /**
+ * Add a directory in which a utility may be built.
+ */
+ void AddUtilityDirectory(const char*);
+
+ /**
* Add a link library to the build.
*/
void AddLinkLibrary(const char*);
@@ -274,6 +284,22 @@ public:
}
/**
+ * Get a list of utilities on which the project depends.
+ */
+ std::vector<std::string>& GetUtilities()
+ {
+ return m_Utilities;
+ }
+
+ /**
+ * Get a list of directories that may contain the Utilities.
+ */
+ std::vector<std::string>& GetUtilityDirectories()
+ {
+ return m_UtilityDirectories;
+ }
+
+ /**
* Get a list of link libraries in the build.
*/
std::vector<std::string>& GetLinkLibraries()
@@ -396,6 +422,8 @@ protected:
std::vector<std::string> m_MakeVerbatim; // lines copied from input file
std::vector<std::string> m_IncludeDirectories;
std::vector<std::string> m_LinkDirectories;
+ std::vector<std::string> m_Utilities;
+ std::vector<std::string> m_UtilityDirectories;
std::vector<std::string> m_LinkLibraries;
std::vector<std::string> m_LinkLibrariesWin32;
std::vector<std::string> m_LinkLibrariesUnix;