cmake/Source/CTest/cmCTestConfigureCommand.h

53 lines
1.1 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmCTestConfigureCommand_h
#define cmCTestConfigureCommand_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
#include "cmCTestHandlerCommand.h"
2016-10-30 18:24:19 +01:00
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestConfigure
* \brief Run a ctest script
*
* cmCTestConfigureCommand defineds the command to configures the project.
*/
class cmCTestConfigureCommand : public cmCTestHandlerCommand
{
public:
2009-10-04 10:30:41 +03:00
cmCTestConfigureCommand();
/**
* This is a virtual constructor for the command.
*/
2018-01-26 17:06:56 +01:00
cmCommand* Clone() override
2016-07-09 11:21:54 +02:00
{
cmCTestConfigureCommand* ni = new cmCTestConfigureCommand;
ni->CTest = this->CTest;
ni->CTestScriptHandler = this->CTestScriptHandler;
return ni;
2016-07-09 11:21:54 +02:00
}
/**
* The name of the command as specified in CMakeList.txt.
*/
2018-01-26 17:06:56 +01:00
std::string GetName() const override { return "ctest_configure"; }
protected:
2018-01-26 17:06:56 +01:00
cmCTestGenericHandler* InitializeHandler() override;
2016-07-09 11:21:54 +02:00
enum
{
2009-10-04 10:30:41 +03:00
ctc_FIRST = ct_LAST,
ctc_OPTIONS,
ctc_LAST
};
};
#endif