summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceGroup.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-04 19:14:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-04 19:14:41 (GMT)
commit076aafe79ad6272c5de826394ef4d2c872257cbe (patch)
tree5e031706fecc400e6543070ffb599a4a64b8be68 /Source/cmSourceGroup.h
parent42c56a7cc7f4a8c301b04d55be86195ab8ac4339 (diff)
downloadCMake-076aafe79ad6272c5de826394ef4d2c872257cbe.zip
CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.gz
CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.bz2
ENH: add file specific compile flags
Diffstat (limited to 'Source/cmSourceGroup.h')
-rw-r--r--Source/cmSourceGroup.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmSourceGroup.h b/Source/cmSourceGroup.h
index d2ede8d..6d36bcb 100644
--- a/Source/cmSourceGroup.h
+++ b/Source/cmSourceGroup.h
@@ -20,7 +20,7 @@
#include "cmStandardIncludes.h"
#include "cmRegularExpression.h"
#include "cmCustomCommand.h"
-
+class cmSourceFile;
/** \class cmSourceGroup
* \brief Hold a group of sources as specified by a SOURCE_GROUP command.
@@ -54,15 +54,21 @@ public:
*/
typedef std::map<cmStdString, CommandFiles> Commands;
+ struct SourceAndCommands
+ {
+ SourceAndCommands(): m_SourceFile(0) {}
+ const cmSourceFile* m_SourceFile;
+ Commands m_Commands;
+ };
/**
* Map from source to command map.
*/
- typedef std::map<cmStdString, Commands> BuildRules;
+ typedef std::map<cmStdString, SourceAndCommands> BuildRules;
bool Matches(const char* name);
void SetGroupRegex(const char* regex)
{ m_GroupRegex.compile(regex); }
- void AddSource(const char* name);
+ void AddSource(const char* name, const cmSourceFile*);
void AddCustomCommand(const cmCustomCommand &cmd);
const char* GetName() const
{ return m_Name.c_str(); }