cmUnixLibrariesRule.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef cmUnixLibrariesRule_h
  2. #define cmUnixLibrariesRule_h
  3. #include "cmStandardIncludes.h"
  4. #include "cmRuleMaker.h"
  5. class cmUnixLibrariesRule : public cmRuleMaker
  6. {
  7. public:
  8. cmUnixLibrariesRule();
  9. virtual cmRuleMaker* Clone()
  10. {
  11. return new cmUnixLibrariesRule;
  12. }
  13. // This is called when the rule is firt encountered in
  14. // the input file
  15. virtual bool Invoke(std::vector<std::string>& args);
  16. virtual void FinalPass() { }
  17. virtual bool IsInherited() { return true; }
  18. // This is the name used in the input file.
  19. virtual const char* GetName() { return "UNIX_LIBRARIES";}
  20. virtual const char* TerseDocumentaion()
  21. {
  22. return "Add libraries that are only used for unix programs.";
  23. }
  24. // Return full documentation for the rule
  25. virtual const char* FullDocumentaion()
  26. {
  27. return
  28. "UNIX_LIBRARIES(library -lm ...);";
  29. }
  30. };
  31. #endif