ENH: add framework for unified handling of arguments to cmake commands,

example see cmExportCommand.cxx

Alex
This commit is contained in:
Alexander Neundorf
2007-07-02 15:43:21 -04:00
parent 7f29f8966d
commit 2e56fa4808
6 changed files with 580 additions and 109 deletions
+6 -4
View File
@@ -28,6 +28,7 @@
class cmExportCommand : public cmCommand
{
public:
cmExportCommand();
/**
* This is a virtual constructor for the command.
*/
@@ -75,10 +76,11 @@ public:
cmTypeMacro(cmExportCommand, cmCommand);
private:
bool ParseArgs(const std::vector<std::string>& args, std::string& filename,
std::string& prefix, std::string& exportName,
std::vector<std::string>& targets, bool& append ) const;
cmCommandArgumentGroup ArgumentGroup;
cmCAStringVector Targets;
cmCAEnabler Append;
cmCAString Prefix;
cmCAString Filename;
};