2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2009-03-16 17:40:46 +03:00
|
|
|
#ifndef cmTestGenerator_h
|
|
|
|
#define cmTestGenerator_h
|
|
|
|
|
2016-08-17 02:08:13 +03:00
|
|
|
#include <cmConfigure.h> // IWYU pragma: keep
|
|
|
|
|
2009-03-16 17:40:46 +03:00
|
|
|
#include "cmScriptGenerator.h"
|
|
|
|
|
2016-08-17 02:08:13 +03:00
|
|
|
#include <iosfwd>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2015-08-05 22:03:26 +03:00
|
|
|
class cmLocalGenerator;
|
2016-08-17 02:08:13 +03:00
|
|
|
class cmTest;
|
2009-03-16 17:40:46 +03:00
|
|
|
|
|
|
|
/** \class cmTestGenerator
|
|
|
|
* \brief Support class for generating install scripts.
|
|
|
|
*
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
class cmTestGenerator : public cmScriptGenerator
|
2009-03-16 17:40:46 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmTestGenerator(cmTest* test,
|
2016-05-16 17:34:04 +03:00
|
|
|
std::vector<std::string> const& configurations =
|
|
|
|
std::vector<std::string>());
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmTestGenerator() CM_OVERRIDE;
|
2009-03-16 17:40:46 +03:00
|
|
|
|
2015-08-05 22:03:26 +03:00
|
|
|
void Compute(cmLocalGenerator* lg);
|
|
|
|
|
2009-03-16 17:40:46 +03:00
|
|
|
protected:
|
2016-06-27 22:25:27 +03:00
|
|
|
void GenerateScriptConfigs(std::ostream& os,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
|
|
|
void GenerateScriptActions(std::ostream& os,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
|
|
|
void GenerateScriptForConfig(std::ostream& os, const std::string& config,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
|
|
|
void GenerateScriptNoConfig(std::ostream& os,
|
|
|
|
Indent const& indent) CM_OVERRIDE;
|
|
|
|
bool NeedsScriptNoConfig() const CM_OVERRIDE;
|
2009-03-16 17:51:30 +03:00
|
|
|
void GenerateOldStyle(std::ostream& os, Indent const& indent);
|
2009-03-16 17:40:46 +03:00
|
|
|
|
2015-08-05 22:03:26 +03:00
|
|
|
cmLocalGenerator* LG;
|
2009-03-16 17:40:46 +03:00
|
|
|
cmTest* Test;
|
|
|
|
bool TestGenerated;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|