diff options
author | Brad King <brad.king@kitware.com> | 2001-05-16 13:19:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-05-16 13:19:46 (GMT) |
commit | a5480276d5782f2bcc8d44cf4c5cbf29b980a1f0 (patch) | |
tree | 964433a727426aedff6e7e50bce08fbd5a8235f2 /Source/cmMakefile.h | |
parent | a12448c19ba732eaf9b5b2907bf25318f9f97ce8 (diff) | |
download | CMake-a5480276d5782f2bcc8d44cf4c5cbf29b980a1f0.zip CMake-a5480276d5782f2bcc8d44cf4c5cbf29b980a1f0.tar.gz CMake-a5480276d5782f2bcc8d44cf4c5cbf29b980a1f0.tar.bz2 |
ENH: Added cmData and corresponding DataMap in cmMakefile to allow commands to register arbitrary extra data with the makefile without modifying the cmMakefile class definition.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 35c7cb0..f7f2bf4 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -42,6 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define cmMakefile_h #include "cmStandardIncludes.h" +#include "cmData.h" #include "cmSourceFile.h" #include "cmSystemTools.h" #include "cmSourceGroup.h" @@ -475,6 +476,10 @@ public: cmSourceGroup& FindSourceGroup(const char* source, std::vector<cmSourceGroup> &groups); + void RegisterData(cmData*); + void RegisterData(const char*, cmData*); + cmData* LookupData(const char*) const; + protected: std::string m_Prefix; std::vector<std::string> m_AuxSourceDirectories; // @@ -528,6 +533,9 @@ private: void AddDefaultCommands(); void AddDefaultDefinitions(); std::set<cmFunctionBlocker *> m_FunctionBlockers; + + typedef std::map<std::string, cmData*> DataMap; + DataMap m_DataMap; }; |