summaryrefslogtreecommitdiffstats
path: root/Source/cmTestsRule.h
diff options
context:
space:
mode:
authorWill Schroeder <will.schroeder@kitware.com>2001-01-11 13:04:28 (GMT)
committerWill Schroeder <will.schroeder@kitware.com>2001-01-11 13:04:28 (GMT)
commit5faa3b9f289ac18884f05ffb66a17908d1982487 (patch)
treee45894f6c3a7699011dd37eeeb3c44985f09cbe1 /Source/cmTestsRule.h
parentbe6b895a3a523729a3d497f7c100fb140044b538 (diff)
downloadCMake-5faa3b9f289ac18884f05ffb66a17908d1982487.zip
CMake-5faa3b9f289ac18884f05ffb66a17908d1982487.tar.gz
CMake-5faa3b9f289ac18884f05ffb66a17908d1982487.tar.bz2
ENH:Added documentation; clean-up
Diffstat (limited to 'Source/cmTestsRule.h')
-rw-r--r--Source/cmTestsRule.h63
1 files changed, 53 insertions, 10 deletions
diff --git a/Source/cmTestsRule.h b/Source/cmTestsRule.h
index b0a7b09..6ccfdab 100644
--- a/Source/cmTestsRule.h
+++ b/Source/cmTestsRule.h
@@ -1,34 +1,77 @@
+/*=========================================================================
+
+ Program: Insight Segmentation & Registration Toolkit
+ Module: $RCSfile$
+ Language: C++
+ Date: $Date$
+ Version: $Revision$
+
+
+ Copyright (c) 2000 National Library of Medicine
+ All rights reserved.
+
+ See COPYRIGHT.txt for copyright details.
+
+=========================================================================*/
#ifndef cmTestsRule_h
#define cmTestsRule_h
#include "cmStandardIncludes.h"
#include "cmRuleMaker.h"
-
+/** \class cmTestsRule
+ * \brief Specify a list of executables to build and which are
+ * identified as tests.
+ *
+ * cmTestsRule specifies a list of executables to be built by CMake.
+ * These executables are identified as tests. This rule is similar to
+ * the EXECUTABLES() rule.
+ *
+ * \sa cmExecutablesRule
+ */
class cmTestsRule : public cmRuleMaker
{
public:
+ /**
+ * This is a virtual constructor for the rule.
+ */
virtual cmRuleMaker* Clone()
{
- return new cmTestsRule;
+ return new cmTestsRule;
}
- // This is called when the rule is firt encountered in
- // the input file
+
+ /**
+ * This is called when the rule is first encountered in
+ * the CMakeLists.txt file.
+ */
virtual bool Invoke(std::vector<std::string>& args);
+
+ /**
+ * This is called at the end after all the information
+ * specified by the rules is accumulated.
+ */
virtual void FinalPass() { }
- // This is the name used in the input file.
- virtual const char* GetName() { return "TESTS";}
+ /**
+ * The name of the rule as specified in CMakeList.txt.
+ */
+ virtual const char* GetName() {return "TESTS";}
+
+ /**
+ * Succinct documentation.
+ */
virtual const char* TerseDocumentation()
{
- return "Add a list of executables files that are run as tests.";
+ return "Add a list of executables files that are run as tests.";
}
- // Return full documentation for the rule
+ /**
+ * More documentation.
+ */
virtual const char* FullDocumentation()
{
- return
- "TESTS(file1 file2 ...)";
+ return
+ "TESTS(file1 file2 ...)";
}
};