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. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-10-30 18:24:19 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2020-02-01 23:06:01 +01:00
|
|
|
#include <cm/memory>
|
|
|
|
|
|
|
|
#include "cmCTestHandlerCommand.h"
|
|
|
|
|
2023-12-07 09:12:54 +01:00
|
|
|
class cmCommand;
|
2009-10-04 10:30:41 +03:00
|
|
|
class cmCTestBuildHandler;
|
2016-10-30 18:24:19 +01:00
|
|
|
class cmCTestGenericHandler;
|
|
|
|
class cmExecutionStatus;
|
|
|
|
class cmGlobalGenerator;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/** \class cmCTestBuild
|
|
|
|
* \brief Run a ctest script
|
|
|
|
*
|
|
|
|
* cmCTestBuildCommand defineds the command to build the project.
|
|
|
|
*/
|
|
|
|
class cmCTestBuildCommand : public cmCTestHandlerCommand
|
|
|
|
{
|
|
|
|
public:
|
2018-01-26 17:06:56 +01:00
|
|
|
~cmCTestBuildCommand() override;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2023-12-07 09:12:54 +01:00
|
|
|
std::unique_ptr<cmCommand> Clone() override;
|
2008-10-12 18:41:06 +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"; }
|
2008-10-12 18:41:06 +02:00
|
|
|
|
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;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
std::unique_ptr<cmGlobalGenerator> GlobalGenerator;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
protected:
|
2009-10-04 10:30:41 +03:00
|
|
|
cmCTestBuildHandler* Handler;
|
2020-02-01 23:06:01 +01:00
|
|
|
void BindArguments() override;
|
2018-01-26 17:06:56 +01:00
|
|
|
cmCTestGenericHandler* InitializeHandler() override;
|
2020-02-01 23:06:01 +01:00
|
|
|
|
|
|
|
std::string NumberErrors;
|
|
|
|
std::string NumberWarnings;
|
|
|
|
std::string Target;
|
|
|
|
std::string Configuration;
|
|
|
|
std::string Flags;
|
|
|
|
std::string ProjectName;
|
2021-09-14 00:13:48 +02:00
|
|
|
std::string ParallelLevel;
|
2008-10-12 18:41:06 +02:00
|
|
|
};
|