2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-05-15 19:12:40 +02:00
|
|
|
#ifndef cmCPackPropertiesGenerator_h
|
|
|
|
#define cmCPackPropertiesGenerator_h
|
|
|
|
|
2017-08-25 20:39:02 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-08-18 00:24:24 +02:00
|
|
|
|
2016-04-29 10:53:13 -04:00
|
|
|
#include "cmScriptGenerator.h"
|
2014-05-15 19:12:40 +02:00
|
|
|
|
2016-08-18 00:24:24 +02:00
|
|
|
#include <iosfwd>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class cmInstalledFile;
|
2015-07-25 17:55:34 +02:00
|
|
|
class cmLocalGenerator;
|
|
|
|
|
2014-05-15 19:12:40 +02:00
|
|
|
/** \class cmCPackPropertiesGenerator
|
|
|
|
* \brief Support class for generating CPackProperties.cmake.
|
|
|
|
*
|
|
|
|
*/
|
2016-05-16 10:34:04 -04:00
|
|
|
class cmCPackPropertiesGenerator : public cmScriptGenerator
|
2014-05-15 19:12:40 +02:00
|
|
|
{
|
|
|
|
public:
|
2016-05-16 10:34:04 -04:00
|
|
|
cmCPackPropertiesGenerator(cmLocalGenerator* lg,
|
|
|
|
cmInstalledFile const& installedFile,
|
|
|
|
std::vector<std::string> const& configurations);
|
2014-05-15 19:12:40 +02:00
|
|
|
|
2019-01-23 20:30:01 +01:00
|
|
|
cmCPackPropertiesGenerator(cmCPackPropertiesGenerator const&) = delete;
|
|
|
|
cmCPackPropertiesGenerator& operator=(cmCPackPropertiesGenerator const&) =
|
|
|
|
delete;
|
|
|
|
|
2014-05-15 19:12:40 +02:00
|
|
|
protected:
|
2016-06-27 21:25:27 +02:00
|
|
|
void GenerateScriptForConfig(std::ostream& os, const std::string& config,
|
2017-09-15 09:56:26 -04:00
|
|
|
Indent indent) override;
|
2014-05-15 19:12:40 +02:00
|
|
|
|
2015-07-25 17:55:34 +02:00
|
|
|
cmLocalGenerator* LG;
|
2014-05-15 19:12:40 +02:00
|
|
|
cmInstalledFile const& InstalledFile;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|