summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-06 22:54:13 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-06 22:54:13 (GMT)
commit96d561aabc7ca453396b8d419b3398dea6b13572 (patch)
treecfb721d465938dc9d7f5454854897414c8006bd7 /Source/cmMakefile.h
parent7d6aaf23e9c3d1ffe81c85791191658b797271f2 (diff)
downloadCMake-96d561aabc7ca453396b8d419b3398dea6b13572.zip
CMake-96d561aabc7ca453396b8d419b3398dea6b13572.tar.gz
CMake-96d561aabc7ca453396b8d419b3398dea6b13572.tar.bz2
ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIES
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 19e712a..017ae70 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -603,6 +603,17 @@ public:
* if so then return it
*/
cmSourceFile *GetSourceFileWithOutput(const char *outName);
+
+ /**
+ * Add a macro to the list of macros. The arguments should be name of the
+ * macro and a documentation signature of it
+ */
+ void AddMacro(const char* name, const char* signature);
+
+ /**
+ * Get a list of macros as a ; separated string
+ */
+ void GetListOfMacros(std::string& macros);
protected:
// add link libraries and directories to the target
@@ -670,6 +681,9 @@ private:
DataMap m_DataMap;
bool m_Inheriting;
+ typedef std::map<cmStdString, cmStdString> StringStringMap;
+ StringStringMap m_MacrosMap;
+
// used in AddDefinition for performance improvement
DefinitionMap::key_type m_TemporaryDefinitionKey;
};