cmake/Source/cmExportSet.h

58 lines
1.5 KiB
C
Raw Normal View History

2013-03-16 19:13:01 +02: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
#include "cmSystemTools.h"
2016-07-09 11:21:54 +02:00
2013-03-16 19:13:01 +02:00
class cmTargetExport;
class cmInstallExportGenerator;
2016-03-13 13:35:51 +01:00
class cmLocalGenerator;
2013-03-16 19:13:01 +02: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-07-09 11:21:54 +02:00
cmExportSet(const std::string& name)
: Name(name)
{
}
2013-03-16 19:13:01 +02:00
/// Destructor
~cmExportSet();
2016-03-13 13:35:51 +01:00
void Compute(cmLocalGenerator* lg);
2013-03-16 19:13:01 +02:00
void AddTargetExport(cmTargetExport* tgt);
void AddInstallation(cmInstallExportGenerator const* installation);
std::string const& GetName() const { return this->Name; }
std::vector<cmTargetExport*> const* GetTargetExports() const
2016-07-09 11:21:54 +02:00
{
return &this->TargetExports;
}
2013-03-16 19:13:01 +02:00
std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
2016-07-09 11:21:54 +02:00
{
return &this->Installations;
}
2013-03-16 19:13:01 +02:00
private:
std::vector<cmTargetExport*> TargetExports;
std::string Name;
std::vector<cmInstallExportGenerator const*> Installations;
};
#endif