cmExportSet.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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. #ifndef cmExportSet_h
  11. #define cmExportSet_h
  12. #include "cmSystemTools.h"
  13. class cmTargetExport;
  14. class cmInstallExportGenerator;
  15. /// A set of targets that were installed with the same EXPORT parameter.
  16. class cmExportSet
  17. {
  18. public:
  19. /// Construct an empty export set named \a name
  20. cmExportSet(const std::string &name) : Name(name) {}
  21. /// Destructor
  22. ~cmExportSet();
  23. void AddTargetExport(cmTargetExport const* tgt);
  24. void AddInstallation(cmInstallExportGenerator const* installation);
  25. std::string const& GetName() const { return this->Name; }
  26. std::vector<cmTargetExport const*> const* GetTargetExports() const
  27. { return &this->TargetExports; }
  28. std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
  29. { return &this->Installations; }
  30. private:
  31. std::vector<cmTargetExport const*> TargetExports;
  32. std::string Name;
  33. std::vector<cmInstallExportGenerator const*> Installations;
  34. };
  35. #endif