diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-01-05 16:41:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-01-05 16:41:20 (GMT) |
commit | c54a05bfc799f3e88459956ec37698bab22c27f9 (patch) | |
tree | 400b2eb0b6853952a4faa8c0fc41b90eb06deaec /Source/cmWin32LibrariesRule.h | |
parent | d888b5e39d4e01af538b48ad16c2a6a474de34a0 (diff) | |
download | CMake-c54a05bfc799f3e88459956ec37698bab22c27f9.zip CMake-c54a05bfc799f3e88459956ec37698bab22c27f9.tar.gz CMake-c54a05bfc799f3e88459956ec37698bab22c27f9.tar.bz2 |
ENH: rework cmake, added ruleMaker classes and changed the syntax of the CMakeLists.txt files.
Diffstat (limited to 'Source/cmWin32LibrariesRule.h')
-rw-r--r-- | Source/cmWin32LibrariesRule.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Source/cmWin32LibrariesRule.h b/Source/cmWin32LibrariesRule.h new file mode 100644 index 0000000..93277a2 --- /dev/null +++ b/Source/cmWin32LibrariesRule.h @@ -0,0 +1,42 @@ +#ifndef cmWin32LibrariesRule_h +#define cmWin32LibrariesRule_h + +#include "cmStandardIncludes.h" +#include "cmRuleMaker.h" + + +class cmWin32LibrariesRule : public cmRuleMaker +{ +public: + cmWin32LibrariesRule(); + virtual cmRuleMaker* Clone() + { + return new cmWin32LibrariesRule ; + } + // 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 "WIN32_LIBRARIES";} + virtual const char* TerseDocumentaion() + { + return "Set a name for the library to be built. One argument."; + } + + // Return full documentation for the rule + virtual const char* FullDocumentaion() + { + return + "Set the name for the library in this makefile. \n" + "This takes one argument.\n" + "LIBRARY(libraryname);\n" + "There can be only one library per CMakeLists.txt file.\n"; + } +}; + + + +#endif |