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)
|
|
|
|
{
|
2018-01-26 17:06:56 +01:00
|
|
|
for (cmTargetExport* tgtExport : this->TargetExports) {
|
|
|
|
tgtExport->Target = lg->FindGeneratorTargetToUse(tgtExport->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);
|
|
|
|
}
|