cmExportSet.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. class cmLocalGenerator;
  16. /// A set of targets that were installed with the same EXPORT parameter.
  17. class cmExportSet
  18. {
  19. public:
  20. /// Construct an empty export set named \a name
  21. cmExportSet(const std::string &name) : Name(name) {}
  22. /// Destructor
  23. ~cmExportSet();
  24. void Compute(cmLocalGenerator* lg);
  25. void AddTargetExport(cmTargetExport* tgt);
  26. void AddInstallation(cmInstallExportGenerator const* installation);
  27. std::string const& GetName() const { return this->Name; }
  28. std::vector<cmTargetExport*> const* GetTargetExports() const
  29. { return &this->TargetExports; }
  30. std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
  31. { return &this->Installations; }
  32. private:
  33. std::vector<cmTargetExport*> TargetExports;
  34. std::string Name;
  35. std::vector<cmInstallExportGenerator const*> Installations;
  36. };
  37. #endif