1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmIncludeRegularExpressionCommand_h
13 #define cmIncludeRegularExpressionCommand_h
15 #include "cmCommand.h"
17 /** \class cmIncludeRegularExpressionCommand
18 * \brief Set the regular expression for following #includes.
20 * cmIncludeRegularExpressionCommand is used to specify the regular expression
21 * that determines whether to follow a #include file in dependency checking.
23 class cmIncludeRegularExpressionCommand : public cmCommand
27 * This is a virtual constructor for the command.
29 virtual cmCommand* Clone()
31 return new cmIncludeRegularExpressionCommand;
35 * This is called when the command is first encountered in
36 * the CMakeLists.txt file.
38 virtual bool InitialPass(std::vector<std::string> const& args,
39 cmExecutionStatus &status);
42 * The name of the command as specified in CMakeList.txt.
44 virtual const char* GetName() const {return "include_regular_expression";}
47 * Succinct documentation.
49 virtual const char* GetTerseDocumentation() const
51 return "Set the regular expression used for dependency checking.";
57 virtual const char* GetFullDocumentation() const
60 " include_regular_expression(regex_match [regex_complain])\n"
61 "Set the regular expressions used in dependency checking. Only files "
62 "matching regex_match will be traced as dependencies. Only files "
63 "matching regex_complain will generate warnings if they cannot be "
65 "(standard header paths are not searched). The defaults are:\n"
66 " regex_match = \"^.*$\" (match everything)\n"
67 " regex_complain = \"^$\" (match empty string only)";
70 cmTypeMacro(cmIncludeRegularExpressionCommand, cmCommand);