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. */
|
2012-02-27 10:09:40 +04:00
|
|
|
#ifndef cmExportSet_h
|
|
|
|
#define cmExportSet_h
|
|
|
|
|
2017-04-11 22:00:21 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-09-01 20:59:28 +02:00
|
|
|
|
|
|
|
#include <string>
|
2019-01-21 17:15:21 +01:00
|
|
|
#include <utility>
|
2016-09-01 20:59:28 +02:00
|
|
|
#include <vector>
|
2016-04-29 09:40:20 -04:00
|
|
|
|
2012-09-15 21:04:48 +02:00
|
|
|
class cmInstallExportGenerator;
|
2015-10-17 13:31:33 +02:00
|
|
|
class cmLocalGenerator;
|
2016-09-01 20:59:28 +02:00
|
|
|
class cmTargetExport;
|
2012-02-27 10:09:40 +04:00
|
|
|
|
|
|
|
/// A set of targets that were installed with the same EXPORT parameter.
|
|
|
|
class cmExportSet
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/// Construct an empty export set named \a name
|
2019-01-21 17:15:21 +01:00
|
|
|
cmExportSet(std::string name)
|
|
|
|
: Name(std::move(name))
|
2016-05-16 10:34:04 -04:00
|
|
|
{
|
|
|
|
}
|
2012-02-27 10:09:40 +04:00
|
|
|
/// Destructor
|
|
|
|
~cmExportSet();
|
|
|
|
|
2019-02-14 17:29:57 +01:00
|
|
|
cmExportSet(const cmExportSet&) = delete;
|
|
|
|
cmExportSet& operator=(const cmExportSet&) = delete;
|
|
|
|
|
2015-10-17 13:31:33 +02:00
|
|
|
void Compute(cmLocalGenerator* lg);
|
|
|
|
|
2012-09-25 19:19:27 +02:00
|
|
|
void AddTargetExport(cmTargetExport* tgt);
|
2012-02-27 10:09:40 +04:00
|
|
|
|
2012-09-15 21:04:48 +02:00
|
|
|
void AddInstallation(cmInstallExportGenerator const* installation);
|
|
|
|
|
2012-02-27 10:09:40 +04:00
|
|
|
std::string const& GetName() const { return this->Name; }
|
2012-09-15 21:04:48 +02:00
|
|
|
|
2012-09-25 19:19:27 +02:00
|
|
|
std::vector<cmTargetExport*> const* GetTargetExports() const
|
2016-05-16 10:34:04 -04:00
|
|
|
{
|
|
|
|
return &this->TargetExports;
|
|
|
|
}
|
2012-02-27 10:09:40 +04:00
|
|
|
|
2012-09-15 21:04:48 +02:00
|
|
|
std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
|
2016-05-16 10:34:04 -04:00
|
|
|
{
|
|
|
|
return &this->Installations;
|
|
|
|
}
|
2012-09-15 21:04:48 +02:00
|
|
|
|
2012-02-27 10:09:40 +04:00
|
|
|
private:
|
2012-09-25 19:19:27 +02:00
|
|
|
std::vector<cmTargetExport*> TargetExports;
|
2012-02-27 10:09:40 +04:00
|
|
|
std::string Name;
|
2012-09-15 21:04:48 +02:00
|
|
|
std::vector<cmInstallExportGenerator const*> Installations;
|
2012-02-27 10:09:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|