blob: cc41bb6a6287c87ee2dcad782f91652aecd99a76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef cmSubdirRule_h
#define cmSubdirRule_h
#include "cmStandardIncludes.h"
#include "cmRuleMaker.h"
class cmSubdirRule : public cmRuleMaker
{
public:
virtual cmRuleMaker* Clone()
{
return new cmSubdirRule;
}
// This is called when the rule is firt encountered in
// the input file
virtual bool Invoke(std::vector<std::string>& args);
virtual void FinalPass() { }
// This is the name used in the input file.
virtual const char* GetName() { return "SUBDIRS";}
virtual const char* TerseDocumentaion()
{
return "Add a list of subdirectories to the build.";
}
// Return full documentation for the rule
virtual const char* FullDocumentaion()
{
return
"Add a list of subdirectories to the build.\n"
"SUBDIRS(dir1 dir2 ...)\n"
"This will cause any CMakeLists.txt files in the sub directories\n"
"to be parsed by cmake.";
}
};
#endif
|