2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2009-03-16 17:40:46 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2009-03-16 17:40:46 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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
|