cmake/Source/CTest/cmCTestCoverageCommand.h

61 lines
1.4 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 cmCTestCoverageCommand_h
#define cmCTestCoverageCommand_h
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h"
2016-10-30 18:24:19 +01:00
#include "cmCTestHandlerCommand.h"
2016-10-30 18:24:19 +01:00
#include <set>
#include <string>
class cmCTestGenericHandler;
class cmCommand;
/** \class cmCTestCoverage
* \brief Run a ctest script
*
* cmCTestCoverageCommand defineds the command to test the project.
*/
class cmCTestCoverageCommand : public cmCTestHandlerCommand
{
public:
2009-10-04 10:30:41 +03:00
cmCTestCoverageCommand();
/**
* This is a virtual constructor for the command.
*/
2016-10-30 18:24:19 +01:00
cmCommand* Clone() CM_OVERRIDE
2016-07-09 11:21:54 +02:00
{
cmCTestCoverageCommand* ni = new cmCTestCoverageCommand;
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.
*/
2016-10-30 18:24:19 +01:00
std::string GetName() const CM_OVERRIDE { return "ctest_coverage"; }
2017-04-14 19:02:05 +02:00
typedef cmCTestHandlerCommand Superclass;
protected:
2016-10-30 18:24:19 +01:00
cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
2009-10-04 10:30:41 +03:00
2016-10-30 18:24:19 +01:00
bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
2009-10-04 10:30:41 +03:00
enum
{
ArgumentDoingLabels = Superclass::ArgumentDoingLast1,
ArgumentDoingLast2
};
bool LabelsMentioned;
2015-04-27 22:25:09 +02:00
std::set<std::string> Labels;
};
#endif