diff options
Diffstat (limited to 'Source/cmUnixLibrariesRule.h')
-rw-r--r-- | Source/cmUnixLibrariesRule.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Source/cmUnixLibrariesRule.h b/Source/cmUnixLibrariesRule.h new file mode 100644 index 0000000..f936728 --- /dev/null +++ b/Source/cmUnixLibrariesRule.h @@ -0,0 +1,39 @@ +#ifndef cmUnixLibrariesRule_h +#define cmUnixLibrariesRule_h + +#include "cmStandardIncludes.h" +#include "cmRuleMaker.h" + + +class cmUnixLibrariesRule : public cmRuleMaker +{ +public: + cmUnixLibrariesRule(); + virtual cmRuleMaker* Clone() + { + return new cmUnixLibrariesRule; + } + // This is called when the rule is firt encountered in + // the input file + virtual bool Invoke(std::vector<std::string>& args); + virtual void FinalPass() { } + virtual bool IsInherited() { return true; } + + // This is the name used in the input file. + virtual const char* GetName() { return "UNIX_LIBRARIES";} + virtual const char* TerseDocumentaion() + { + return "Add libraries that are only used for unix programs."; + } + + // Return full documentation for the rule + virtual const char* FullDocumentaion() + { + return + "UNIX_LIBRARIES(library -lm ...);"; + } +}; + + + +#endif |