cmExportSet.cxx 997 B

1234567891011121314151617181920212223242526272829303132
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmExportSet.h"
  11. #include "cmTargetExport.h"
  12. cmExportSet::~cmExportSet()
  13. {
  14. for(unsigned int i = 0; i < this->TargetExports.size(); ++ i)
  15. {
  16. delete this->TargetExports[i];
  17. }
  18. }
  19. void cmExportSet::AddTargetExport(cmTargetExport* te)
  20. {
  21. this->TargetExports.push_back(te);
  22. }
  23. void cmExportSet::AddInstallation(cmInstallExportGenerator const* installation)
  24. {
  25. this->Installations.push_back(installation);
  26. }