Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Source / cmExportSet.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmExportSet_h
13 #define cmExportSet_h
14
15 #include "cmSystemTools.h"
16 class cmTargetExport;
17 class cmInstallExportGenerator;
18
19 /// A set of targets that were installed with the same EXPORT parameter.
20 class cmExportSet
21 {
22 public:
23   /// Construct an empty export set named \a name
24   cmExportSet(const std::string &name) : Name(name) {}
25   /// Destructor
26   ~cmExportSet();
27
28   void AddTargetExport(cmTargetExport* tgt);
29
30   void AddInstallation(cmInstallExportGenerator const* installation);
31
32   std::string const& GetName() const { return this->Name; }
33
34   std::vector<cmTargetExport*> const* GetTargetExports() const
35      { return &this->TargetExports; }
36
37   std::vector<cmInstallExportGenerator const*> const* GetInstallations() const
38      { return &this->Installations; }
39
40 private:
41   std::vector<cmTargetExport*> TargetExports;
42   std::string Name;
43   std::vector<cmInstallExportGenerator const*> Installations;
44 };
45
46 #endif