cmake/Source/cmExportSet.cxx

31 lines
809 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2013-03-16 19:13:01 +02:00
#include "cmExportSet.h"
2016-07-09 11:21:54 +02:00
2015-08-17 11:37:30 +02:00
#include "cmAlgorithms.h"
2016-03-13 13:35:51 +01:00
#include "cmLocalGenerator.h"
2016-07-09 11:21:54 +02:00
#include "cmTargetExport.h"
2013-03-16 19:13:01 +02:00
cmExportSet::~cmExportSet()
{
2015-04-27 22:25:09 +02:00
cmDeleteAll(this->TargetExports);
2013-03-16 19:13:01 +02:00
}
2016-03-13 13:35:51 +01:00
void cmExportSet::Compute(cmLocalGenerator* lg)
{
for (std::vector<cmTargetExport*>::iterator it = this->TargetExports.begin();
2016-07-09 11:21:54 +02:00
it != this->TargetExports.end(); ++it) {
2016-03-13 13:35:51 +01:00
(*it)->Target = lg->FindGeneratorTargetToUse((*it)->TargetName);
2016-07-09 11:21:54 +02:00
}
2016-03-13 13:35:51 +01:00
}
2013-03-16 19:13:01 +02:00
void cmExportSet::AddTargetExport(cmTargetExport* te)
{
this->TargetExports.push_back(te);
}
void cmExportSet::AddInstallation(cmInstallExportGenerator const* installation)
{
this->Installations.push_back(installation);
}