ENH: rework cmake, added ruleMaker classes and changed the syntax of the CMakeLists.txt files.

This commit is contained in:
Bill Hoffman
2001-01-05 11:41:20 -05:00
parent d888b5e39d
commit c54a05bfc7
78 changed files with 2945 additions and 915 deletions
+39
View File
@@ -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