1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestConfigureCommand.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 cmCTestConfigureCommand_h
18 #define cmCTestConfigureCommand_h
20 #include "cmCTestHandlerCommand.h"
22 /** \class cmCTestConfigure
23 * \brief Run a ctest script
25 * cmCTestConfigureCommand defineds the command to configures the project.
27 class cmCTestConfigureCommand
: public cmCTestHandlerCommand
31 cmCTestConfigureCommand() {}
34 * This is a virtual constructor for the command.
36 virtual cmCommand
* Clone()
38 cmCTestConfigureCommand
* ni
= new cmCTestConfigureCommand
;
39 ni
->CTest
= this->CTest
;
40 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
45 * The name of the command as specified in CMakeList.txt.
47 virtual const char* GetName() { return "CTEST_CONFIGURE";}
50 * Succinct documentation.
52 virtual const char* GetTerseDocumentation()
54 return "Configures the repository.";
60 virtual const char* GetFullDocumentation()
63 " CTEST_CONFIGURE(BUILD build_dir RETURN_VALUE res)\n"
64 "Configures the given build directory and stores results in "
65 "Configure.xml. The second argument is a variable that will hold "
69 cmTypeMacro(cmCTestConfigureCommand
, cmCTestHandlerCommand
);
72 cmCTestGenericHandler
* InitializeHandler();