1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestConfigureCommand.h,v $
6 Date: $Date: 2009-02-20 20:51:03 $
7 Version: $Revision: 1.9 $
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
30 cmCTestConfigureCommand();
33 * This is a virtual constructor for the command.
35 virtual cmCommand
* Clone()
37 cmCTestConfigureCommand
* ni
= new cmCTestConfigureCommand
;
38 ni
->CTest
= this->CTest
;
39 ni
->CTestScriptHandler
= this->CTestScriptHandler
;
44 * The name of the command as specified in CMakeList.txt.
46 virtual const char* GetName() { return "ctest_configure";}
49 * Succinct documentation.
51 virtual const char* GetTerseDocumentation()
53 return "Configure the project build tree.";
59 virtual const char* GetFullDocumentation()
62 " ctest_configure([BUILD build_dir] [SOURCE source_dir] [APPEND]\n"
63 " [OPTIONS options] [RETURN_VALUE res])\n"
64 "Configures the given build directory and stores results in "
66 "If no BUILD is given, the CTEST_BINARY_DIRECTORY variable is used. "
67 "If no SOURCE is given, the CTEST_SOURCE_DIRECTORY variable is used. "
68 "The OPTIONS argument specifies command line arguments to pass to "
69 "the configuration tool. "
70 "The RETURN_VALUE option specifies a variable in which to store the "
71 "return value of the native build tool."
73 CTEST_COMMAND_APPEND_OPTION_DOCS
;
76 cmTypeMacro(cmCTestConfigureCommand
, cmCTestHandlerCommand
);
79 cmCTestGenericHandler
* InitializeHandler();