1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #ifndef cmCTestConfigureCommand_h
13 #define cmCTestConfigureCommand_h
15 #include "cmCTestHandlerCommand.h"
17 /** \class cmCTestConfigure
18 * \brief Run a ctest script
20 * cmCTestConfigureCommand defineds the command to configures the project.
22 class cmCTestConfigureCommand : public cmCTestHandlerCommand
25 cmCTestConfigureCommand();
28 * This is a virtual constructor for the command.
30 virtual cmCommand* Clone()
32 cmCTestConfigureCommand* ni = new cmCTestConfigureCommand;
33 ni->CTest = this->CTest;
34 ni->CTestScriptHandler = this->CTestScriptHandler;
39 * The name of the command as specified in CMakeList.txt.
41 virtual const char* GetName() const { return "ctest_configure";}
44 * Succinct documentation.
46 virtual const char* GetTerseDocumentation() const
48 return "Configure the project build tree.";
54 virtual const char* GetFullDocumentation() const
57 " ctest_configure([BUILD build_dir] [SOURCE source_dir] [APPEND]\n"
58 " [OPTIONS options] [RETURN_VALUE res])\n"
59 "Configures the given build directory and stores results in "
61 "If no BUILD is given, the CTEST_BINARY_DIRECTORY variable is used. "
62 "If no SOURCE is given, the CTEST_SOURCE_DIRECTORY variable is used. "
63 "The OPTIONS argument specifies command line arguments to pass to "
64 "the configuration tool. "
65 "The RETURN_VALUE option specifies a variable in which to store the "
66 "return value of the native build tool."
68 CTEST_COMMAND_APPEND_OPTION_DOCS;
71 cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand);
74 cmCTestGenericHandler* InitializeHandler();