summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetExport.h
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-02-26 20:05:17 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-28 13:21:38 (GMT)
commit81c66c8b88d756a1605aa1aac1de49df77feecdd (patch)
tree0461b0f36ad69474ac569327685f27e65a584966 /Source/cmTargetExport.h
parentae4ab62569e9b68d6976cb6ad4c1ad411ed8d3da (diff)
downloadCMake-81c66c8b88d756a1605aa1aac1de49df77feecdd.zip
CMake-81c66c8b88d756a1605aa1aac1de49df77feecdd.tar.gz
CMake-81c66c8b88d756a1605aa1aac1de49df77feecdd.tar.bz2
exports: Move cmTargetExport to a dedicated header file
Diffstat (limited to 'Source/cmTargetExport.h')
-rw-r--r--Source/cmTargetExport.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/Source/cmTargetExport.h b/Source/cmTargetExport.h
new file mode 100644
index 0000000..ad677b0
--- /dev/null
+++ b/Source/cmTargetExport.h
@@ -0,0 +1,51 @@
+/*============================================================================
+ CMake - Cross Platform Makefile Generator
+ Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#ifndef cmTargetExport_h
+#define cmTargetExport_h
+
+class cmTarget;
+class cmInstallTargetGenerator;
+class cmInstallFilesGenerator;
+
+/** \brief A member of an ExportSet
+ *
+ * This struct holds pointers to target and all relevant generators.
+ */
+class cmTargetExport
+{
+public:
+ cmTargetExport(cmTarget* tgt,
+ cmInstallTargetGenerator* archive,
+ cmInstallTargetGenerator* runtime,
+ cmInstallTargetGenerator* library,
+ cmInstallTargetGenerator* framework,
+ cmInstallTargetGenerator* bundle,
+ cmInstallFilesGenerator* headers
+ ) : Target(tgt), ArchiveGenerator(archive),
+ RuntimeGenerator(runtime), LibraryGenerator(library),
+ FrameworkGenerator(framework), BundleGenerator(bundle),
+ HeaderGenerator(headers) {}
+
+ cmTarget* Target; ///< The target
+
+ ///@name Generators
+ ///@{
+ cmInstallTargetGenerator* ArchiveGenerator;
+ cmInstallTargetGenerator* RuntimeGenerator;
+ cmInstallTargetGenerator* LibraryGenerator;
+ cmInstallTargetGenerator* FrameworkGenerator;
+ cmInstallTargetGenerator* BundleGenerator;
+ cmInstallFilesGenerator* HeaderGenerator;
+ ///@}
+};
+
+#endif