diff options
Diffstat (limited to 'Source/cmIncludeDirectoryRule.h')
-rw-r--r-- | Source/cmIncludeDirectoryRule.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Source/cmIncludeDirectoryRule.h b/Source/cmIncludeDirectoryRule.h new file mode 100644 index 0000000..0ec61c2 --- /dev/null +++ b/Source/cmIncludeDirectoryRule.h @@ -0,0 +1,38 @@ +#ifndef cmIncludeDirectoryRule_h +#define cmIncludeDirectoryRule_h + +#include "cmStandardIncludes.h" +#include "cmRuleMaker.h" + + +class cmIncludeDirectoryRule : public cmRuleMaker +{ +public: + virtual cmRuleMaker* Clone() + { + return new cmIncludeDirectoryRule; + } + // 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 "INCLUDE_DIRECTORIES";} + virtual const char* TerseDocumentaion() + { + return "Add include directories to the build."; + } + + // Return full documentation for the rule + virtual const char* FullDocumentaion() + { + return + "INCLUDE_DIRECTORIES(dir1 dir2 ...).\n"; + } +}; + + + +#endif |