summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeRegularExpressionCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-15 23:09:16 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-15 23:09:16 (GMT)
commitbe4db9150c6b3bd8a6c39d48fa693a6209c34740 (patch)
tree033cb0942c8e0b7eb43afbfaef19ec403ab56083 /Source/cmIncludeRegularExpressionCommand.h
parentb9a8948ec879f2e6a9a2f6220bba061c44c8d4bb (diff)
downloadCMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.zip
CMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.tar.gz
CMake-be4db9150c6b3bd8a6c39d48fa693a6209c34740.tar.bz2
ENH: Added INCLUDE_REGULAR_EXPRESSION command to set regular expression used in dependency checking.
Diffstat (limited to 'Source/cmIncludeRegularExpressionCommand.h')
-rw-r--r--Source/cmIncludeRegularExpressionCommand.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/Source/cmIncludeRegularExpressionCommand.h b/Source/cmIncludeRegularExpressionCommand.h
new file mode 100644
index 0000000..688ad60
--- /dev/null
+++ b/Source/cmIncludeRegularExpressionCommand.h
@@ -0,0 +1,84 @@
+/*=========================================================================
+
+ 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 cmIncludeRegularExpressionCommand_h
+#define cmIncludeRegularExpressionCommand_h
+
+#include "cmStandardIncludes.h"
+#include "cmCommand.h"
+
+/** \class cmIncludeRegularExpressionCommand
+ * \brief Set the regular expression for following #includes.
+ *
+ * cmIncludeRegularExpressionCommand is used to specify the regular expression
+ * used by cmMakeDepend to determine whether to follow a #include file in
+ * dependency checking.
+ */
+class cmIncludeRegularExpressionCommand : public cmCommand
+{
+public:
+ /**
+ * This is a virtual constructor for the command.
+ */
+ virtual cmCommand* Clone()
+ {
+ return new cmIncludeRegularExpressionCommand;
+ }
+
+ /**
+ * This is called when the command is first encountered in
+ * the CMakeLists.txt file.
+ */
+ virtual bool Invoke(std::vector<std::string>& args);
+
+ /**
+ * The name of the command as specified in CMakeList.txt.
+ */
+ virtual const char* GetName() {return "INCLUDE_REGULAR_EXPRESSION";}
+
+ /**
+ * This determines if the command gets propagated down
+ * to makefiles located in subdirectories.
+ */
+ virtual bool IsInherited()
+ {
+ return true;
+ }
+
+ /**
+ * Succinct documentation.
+ */
+ virtual const char* GetTerseDocumentation()
+ {
+ return "Set the regular expression used for dependency checking.";
+ }
+
+ /**
+ * More documentation.
+ */
+ virtual const char* GetFullDocumentation()
+ {
+ return
+ "INCLUDE_REGULAR_EXPRESSION(regex)\n"
+ "Sets the regular expression used in dependency checking. Only\n"
+ "include files matching this regular expression will be traced.";
+ }
+
+ cmTypeMacro(cmIncludeRegularExpressionCommand, cmCommand);
+};
+
+
+
+#endif