2012-02-27 10:09:40 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
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.
|
|
|
|
============================================================================*/
|
|
|
|
#ifndef cmExportSet_h
|
|
|
|
#define cmExportSet_h
|
|
|
|
|
2016-09-01 21:59:28 +03:00
|
|
|
#include <cmConfigure.h> // IWYU pragma: keep
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2012-09-15 23:04:48 +04:00
|
|
|
class cmInstallExportGenerator;
|
2015-10-17 14:31:33 +03:00
|
|
|
class cmLocalGenerator;
|
2016-09-01 21:59:28 +03: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
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExportSet(const std::string& name)
|
|
|
|
: Name(name)
|
|
|
|
{
|
|
|
|
}
|
2012-02-27 10:09:40 +04:00
|
|
|
/// Destructor
|
|
|
|
~cmExportSet();
|
|
|
|
|
2015-10-17 14:31:33 +03:00
|
|
|
void Compute(cmLocalGenerator* lg);
|
|
|
|
|
2012-09-25 21:19:27 +04:00
|
|
|
void AddTargetExport(cmTargetExport* tgt);
|
2012-02-27 10:09:40 +04:00
|
|
|
|
2012-09-15 23:04:48 +04: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 23:04:48 +04:00
|
|
|
|
2012-09-25 21:19:27 +04:00
|
|
|
std::vector<cmTargetExport*> const* GetTargetExports() const
|
2016-05-16 17:34:04 +03:00
|
|
|
{
|
|
|
|
return &this->TargetExports;
|
|
|
|
}
|
2012-02-27 10:09:40 +04:00
|
|
|
|
2012-09-15 23:04:48 +04:00
|
|
|
std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
|
2016-05-16 17:34:04 +03:00
|
|
|
{
|
|
|
|
return &this->Installations;
|
|
|
|
}
|
2012-09-15 23:04:48 +04:00
|
|
|
|
2012-02-27 10:09:40 +04:00
|
|
|
private:
|
2012-09-25 21:19:27 +04:00
|
|
|
std::vector<cmTargetExport*> TargetExports;
|
2012-02-27 10:09:40 +04:00
|
|
|
std::string Name;
|
2012-09-15 23:04:48 +04:00
|
|
|
std::vector<cmInstallExportGenerator const*> Installations;
|
2012-02-27 10:09:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|