summaryrefslogtreecommitdiffstats
path: root/Source/cmAddTargetRule.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmAddTargetRule.h')
-rw-r--r--Source/cmAddTargetRule.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/cmAddTargetRule.h b/Source/cmAddTargetRule.h
new file mode 100644
index 0000000..232e0f7
--- /dev/null
+++ b/Source/cmAddTargetRule.h
@@ -0,0 +1,37 @@
+#ifndef cmAddTargetRule_h
+#define cmAddTargetRule_h
+
+#include "cmStandardIncludes.h"
+#include "cmRuleMaker.h"
+
+
+class cmAddTargetRule : public cmRuleMaker
+{
+public:
+ virtual cmRuleMaker* Clone()
+ {
+ return new cmAddTargetRule;
+ }
+ // This is called when the rule is firt encountered in
+ // the input file
+ virtual bool Invoke(std::vector<std::string>& args);
+ virtual void FinalPass() { }
+
+ // This is the name used in the input file.
+ virtual const char* GetName() { return "ADD_TARGET";}
+ virtual const char* TerseDocumentaion()
+ {
+ return "Add an extra target to the build system.";
+ }
+
+ // Return full documentation for the rule
+ virtual const char* FullDocumentaion()
+ {
+ return
+ "ADD_TARGET(Name \"command to run\");";
+ }
+};
+
+
+
+#endif