summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
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.cxx
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.cxx')
-rw-r--r--Source/cmMakefile.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 673762d..f38cda2 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -106,6 +106,8 @@ void cmMakefile::Print()
this->PrintStringVector("m_LinkLibraries", m_LinkLibraries);
this->PrintStringVector("m_LinkLibrariesWin32", m_LinkLibrariesWin32);
this->PrintStringVector("m_LinkLibrariesUnix", m_LinkLibrariesUnix);
+ this->PrintStringVector("m_Utilities", m_Utilities);
+ this->PrintStringVector("m_UtilityDirectories", m_UtilityDirectories);
}
// Parse the given CMakeLists.txt file into a list of classes.
@@ -285,6 +287,16 @@ bool cmMakefile::HasExecutables()
return false;
}
+void cmMakefile::AddUtility(const char* util)
+{
+ m_Utilities.push_back(util);
+}
+
+void cmMakefile::AddUtilityDirectory(const char* dir)
+{
+ m_UtilityDirectories.push_back(dir);
+}
+
void cmMakefile::AddLinkLibrary(const char* lib)
{
m_LinkLibraries.push_back(lib);