Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmBuildCommand.h
blobbe3a465296729b181775ccc31c14079831ec2525
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmBuildCommand.h,v $
5 Language: C++
6 Date: $Date: 2008/01/23 15:27:59 $
7 Version: $Revision: 1.13 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmBuildCommand_h
18 #define cmBuildCommand_h
20 #include "cmCommand.h"
22 /** \class cmBuildCommand
23 * \brief Build a CMAKE variable
25 * cmBuildCommand sets a variable to a value with expansion.
27 class cmBuildCommand : public cmCommand
29 public:
30 /**
31 * This is a virtual constructor for the command.
33 virtual cmCommand* Clone()
35 return new cmBuildCommand;
38 /**
39 * This is called when the command is first encountered in
40 * the CMakeLists.txt file.
42 virtual bool InitialPass(std::vector<std::string> const& args,
43 cmExecutionStatus &status);
45 /**
46 * The name of the command as specified in CMakeList.txt.
48 virtual const char* GetName() {return "build_command";}
50 /**
51 * Succinct documentation.
53 virtual const char* GetTerseDocumentation()
55 return "Get the command line that will build this project.";
58 /**
59 * More documentation.
61 virtual const char* GetFullDocumentation()
63 return
64 " build_command(<variable> <makecommand>)\n"
65 "Sets the given <variable> to a string containing the command that "
66 "will build this project from the root of the build tree using the "
67 "build tool given by <makecommand>. <makecommand> should be msdev, "
68 "nmake, make or one of the end user build tools. "
69 "This is useful for configuring testing systems.";
72 cmTypeMacro(cmBuildCommand, cmCommand);
77 #endif