1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestBuildCommand.h,v $
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
33 cmCTestBuildCommand();
34 ~cmCTestBuildCommand();
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
;
48 * The name of the command as specified in CMakeList.txt.
50 virtual const char* GetName() { return "CTEST_BUILD";}
53 * Succinct documentation.
55 virtual const char* GetTerseDocumentation()
57 return "Builds the repository.";
63 virtual const char* GetFullDocumentation()
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
;
75 cmCTestGenericHandler
* InitializeHandler();