Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CTest / cmCTestBuildCommand.h
blob2a592a53e513372d6ca3155e9ea3ec05f07e1a46
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestBuildCommand.h,v $
5 Language: C++
6 Date: $Date: 2006/03/29 17:01:24 $
7 Version: $Revision: 1.5 $
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 cmCTestBuildCommand_h
18 #define cmCTestBuildCommand_h
20 #include "cmCTestHandlerCommand.h"
22 class cmGlobalGenerator;
24 /** \class cmCTestBuild
25 * \brief Run a ctest script
27 * cmCTestBuildCommand defineds the command to build the project.
29 class cmCTestBuildCommand : public cmCTestHandlerCommand
31 public:
33 cmCTestBuildCommand();
34 ~cmCTestBuildCommand();
36 /**
37 * This is a virtual constructor for the command.
39 virtual cmCommand* Clone()
41 cmCTestBuildCommand* ni = new cmCTestBuildCommand;
42 ni->CTest = this->CTest;
43 ni->CTestScriptHandler = this->CTestScriptHandler;
44 return ni;
47 /**
48 * The name of the command as specified in CMakeList.txt.
50 virtual const char* GetName() { return "CTEST_BUILD";}
52 /**
53 * Succinct documentation.
55 virtual const char* GetTerseDocumentation()
57 return "Builds the repository.";
60 /**
61 * More documentation.
63 virtual const char* GetFullDocumentation()
65 return
66 " CTEST_BUILD([BUILD build_dir] [RETURN_VALUE res])\n"
67 "Builds the given build directory and stores results in Build.xml.";
70 cmTypeMacro(cmCTestBuildCommand, cmCTestHandlerCommand);
72 cmGlobalGenerator* GlobalGenerator;
74 protected:
75 cmCTestGenericHandler* InitializeHandler();
79 #endif