summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkDirectoriesRule.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-01-05 16:41:20 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-01-05 16:41:20 (GMT)
commitc54a05bfc799f3e88459956ec37698bab22c27f9 (patch)
tree400b2eb0b6853952a4faa8c0fc41b90eb06deaec /Source/cmLinkDirectoriesRule.h
parentd888b5e39d4e01af538b48ad16c2a6a474de34a0 (diff)
downloadCMake-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/cmLinkDirectoriesRule.h')
-rw-r--r--Source/cmLinkDirectoriesRule.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/Source/cmLinkDirectoriesRule.h b/Source/cmLinkDirectoriesRule.h
new file mode 100644
index 0000000..e449c29
--- /dev/null
+++ b/Source/cmLinkDirectoriesRule.h
@@ -0,0 +1,42 @@
+#ifndef cmLinkDirectoriesRule_h
+#define cmLinkDirectoriesRule_h
+
+#include "cmStandardIncludes.h"
+#include "cmRuleMaker.h"
+
+
+class cmLinkDirectoriesRule : public cmRuleMaker
+{
+public:
+ virtual cmRuleMaker* Clone()
+ {
+ return new cmLinkDirectoriesRule;
+ }
+ // 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 "LINK_DIRECTORIES";}
+ virtual const char* TerseDocumentaion()
+ {
+ return "Specify link directories.";
+ }
+
+ // Return full documentation for the rule
+ virtual const char* FullDocumentaion()
+ {
+ return
+ "Specify the paths to the libraries that will be linked in.\n"
+ "LINK_DIRECTORIES(directory1 directory2 ...);\n"
+ "The directories can use built in definitions like \n"
+ "CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.";
+ }
+};
+
+
+
+#endif