mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
ENH: rework cmake, added ruleMaker classes and changed the syntax of the CMakeLists.txt files.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user