summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-09-12 09:30:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-09-12 09:30:35 (GMT)
commitaa3ca2b432ab346c28ea7c758cbbf57ca346e139 (patch)
treedec236eb51e746ae123edb3e9c01a5595381e12f /Source/cmMakefile.h
parente2ad65d3c27177b8f3ee3c9b81382ea883a3bfbd (diff)
downloadCMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.zip
CMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.tar.gz
CMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.tar.bz2
ENH: CMake and configure now use SUBDIRS in CMakeLists.txt to find all the directories of the system.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index d570de4..94cb988 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -14,7 +14,8 @@
=========================================================================*/
/**
- * cmMakefile
+ * cmMakefile - used to parse and store the contents of a
+ * CMakeLists.txt makefile in memory.
*/
#ifndef cmMakefile_h
#define cmMakefile_h
@@ -23,6 +24,7 @@
#endif
#include "cmClassFile.h"
+#include "cmCollectFlags.h"
#include <vector>
#include <fstream>
#include <iostream>
@@ -82,10 +84,17 @@ public:
{
return m_OutputHomeDirectory.c_str();
}
+ cmCollectFlags& GetBuildFlags()
+ {
+ return m_BuildFlags;
+ }
+ const std::vector<std::string>& GetSubDirectories()
+ {
+ return m_SubDirectories;
+ }
private:
void ReadTemplateInstanceDirectory(std::string&);
- void ReadSubdirs(std::ifstream& fin);
void ReadClasses(std::ifstream& fin, bool t);
friend class cmMakeDepend; // make depend needs direct access
// to the m_Classes array
@@ -99,7 +108,8 @@ protected:
std::string m_LibraryName; // library name
std::vector<cmClassFile> m_Classes; // list of classes in makefile
std::vector<std::string> m_SubDirectories; // list of sub directories
- std::vector<std::string> m_MakeVerbatim; // list of sub directories
+ std::vector<std::string> m_MakeVerbatim; // lines copied from input file
+ cmCollectFlags m_BuildFlags;
};