cmProjectRule.h 854 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef cmProjectRule_h
  2. #define cmProjectRule_h
  3. #include "cmStandardIncludes.h"
  4. #include "cmRuleMaker.h"
  5. class cmProjectRule : public cmRuleMaker
  6. {
  7. public:
  8. virtual cmRuleMaker* Clone()
  9. {
  10. return new cmProjectRule;
  11. }
  12. // This is called when the rule is firt encountered in
  13. // the input file
  14. virtual bool Invoke(std::vector<std::string>& args);
  15. virtual void FinalPass() { }
  16. // This is the name used in the input file.
  17. virtual const char* GetName() { return "PROJECT";}
  18. virtual const char* TerseDocumentaion()
  19. {
  20. return "Set a name for the entire project. One argument.";
  21. }
  22. // Return full documentation for the rule
  23. virtual const char* FullDocumentaion()
  24. {
  25. return
  26. "Set the name for the entire project. This takes one argument.\n"
  27. "PROJECT(projectname);";
  28. }
  29. };
  30. #endif