cmake/Source/CTest/cmCTestBuildCommand.h

69 lines
1.5 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 cmCTestBuildCommand_h
#define cmCTestBuildCommand_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>
#include <vector>
2009-10-04 10:30:41 +03:00
class cmCTestBuildHandler;
2016-10-30 18:24:19 +01:00
class cmCTestGenericHandler;
class cmCommand;
class cmExecutionStatus;
class cmGlobalGenerator;
/** \class cmCTestBuild
* \brief Run a ctest script
*
* cmCTestBuildCommand defineds the command to build the project.
*/
class cmCTestBuildCommand : public cmCTestHandlerCommand
{
public:
cmCTestBuildCommand();
2018-01-26 17:06:56 +01:00
~cmCTestBuildCommand() override;
/**
* 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
{
cmCTestBuildCommand* ni = new cmCTestBuildCommand;
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_build"; }
2016-10-30 18:24:19 +01:00
bool InitialPass(std::vector<std::string> const& args,
2018-01-26 17:06:56 +01:00
cmExecutionStatus& status) override;
cmGlobalGenerator* GlobalGenerator;
protected:
2009-10-04 10:30:41 +03:00
cmCTestBuildHandler* Handler;
2016-07-09 11:21:54 +02:00
enum
{
2009-10-04 10:30:41 +03:00
ctb_BUILD = ct_LAST,
ctb_NUMBER_ERRORS,
ctb_NUMBER_WARNINGS,
2010-03-17 14:00:29 +02:00
ctb_TARGET,
ctb_CONFIGURATION,
ctb_FLAGS,
ctb_PROJECT_NAME,
2009-10-04 10:30:41 +03:00
ctb_LAST
};
2018-01-26 17:06:56 +01:00
cmCTestGenericHandler* InitializeHandler() override;
};
#endif