2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2012-02-27 06:09:40 +00:00
|
|
|
#ifndef cmExportSet_h
|
|
|
|
#define cmExportSet_h
|
|
|
|
|
2016-09-01 18:59:28 +00:00
|
|
|
#include <cmConfigure.h> // IWYU pragma: keep
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2016-04-29 13:40:20 +00:00
|
|
|
|
2012-09-15 19:04:48 +00:00
|
|
|
class cmInstallExportGenerator;
|
2015-10-17 11:31:33 +00:00
|
|
|
class cmLocalGenerator;
|
2016-09-01 18:59:28 +00:00
|
|
|
class cmTargetExport;
|
2012-02-27 06:09:40 +00:00
|
|
|
|
|
|
|
/// A set of targets that were installed with the same EXPORT parameter.
|
|
|
|
class cmExportSet
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Construct an empty export set named \a name
|
2016-05-16 14:34:04 +00:00
|
|
|
cmExportSet(const std::string& name)
|
|
|
|
: Name(name)
|
|
|
|
{
|
|
|
|
}
|
2012-02-27 06:09:40 +00:00
|
|
|
/// Destructor
|
|
|
|
~cmExportSet();
|
|
|
|
|
2015-10-17 11:31:33 +00:00
|
|
|
void Compute(cmLocalGenerator* lg);
|
|
|
|
|
2012-09-25 17:19:27 +00:00
|
|
|
void AddTargetExport(cmTargetExport* tgt);
|
2012-02-27 06:09:40 +00:00
|
|
|
|
2012-09-15 19:04:48 +00:00
|
|
|
void AddInstallation(cmInstallExportGenerator const* installation);
|
|
|
|
|
2012-02-27 06:09:40 +00:00
|
|
|
std::string const& GetName() const { return this->Name; }
|
2012-09-15 19:04:48 +00:00
|
|
|
|
2012-09-25 17:19:27 +00:00
|
|
|
std::vector<cmTargetExport*> const* GetTargetExports() const
|
2016-05-16 14:34:04 +00:00
|
|
|
{
|
|
|
|
return &this->TargetExports;
|
|
|
|
}
|
2012-02-27 06:09:40 +00:00
|
|
|
|
2012-09-15 19:04:48 +00:00
|
|
|
std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
|
2016-05-16 14:34:04 +00:00
|
|
|
{
|
|
|
|
return &this->Installations;
|
|
|
|
}
|
2012-09-15 19:04:48 +00:00
|
|
|
|
2012-02-27 06:09:40 +00:00
|
|
|
private:
|
2012-09-25 17:19:27 +00:00
|
|
|
std::vector<cmTargetExport*> TargetExports;
|
2012-02-27 06:09:40 +00:00
|
|
|
std::string Name;
|
2012-09-15 19:04:48 +00:00
|
|
|
std::vector<cmInstallExportGenerator const*> Installations;
|
2012-02-27 06:09:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|