cmExportSet.cxx 747 B

1234567891011121314151617181920212223242526272829
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmExportSet.h"
  4. #include "cmAlgorithms.h"
  5. #include "cmLocalGenerator.h"
  6. #include "cmTargetExport.h"
  7. cmExportSet::~cmExportSet()
  8. {
  9. cmDeleteAll(this->TargetExports);
  10. }
  11. void cmExportSet::Compute(cmLocalGenerator* lg)
  12. {
  13. for (cmTargetExport* tgtExport : this->TargetExports) {
  14. tgtExport->Target = lg->FindGeneratorTargetToUse(tgtExport->TargetName);
  15. }
  16. }
  17. void cmExportSet::AddTargetExport(cmTargetExport* te)
  18. {
  19. this->TargetExports.push_back(te);
  20. }
  21. void cmExportSet::AddInstallation(cmInstallExportGenerator const* installation)
  22. {
  23. this->Installations.push_back(installation);
  24. }