summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenGlobalInitializer.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-11-05 10:18:46 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-11-11 08:35:28 (GMT)
commit3327d3bb20c2a4505648b59d72cfaada38e1ee93 (patch)
tree6a6053f75255956b59a6828459a3756c2e6301a9 /Source/cmQtAutoGenGlobalInitializer.h
parent206ce3c0ba730f34444a8627d6a4f261bf60fc92 (diff)
downloadCMake-3327d3bb20c2a4505648b59d72cfaada38e1ee93.zip
CMake-3327d3bb20c2a4505648b59d72cfaada38e1ee93.tar.gz
CMake-3327d3bb20c2a4505648b59d72cfaada38e1ee93.tar.bz2
Autogen: Add cmQtAutoGenGlobalInitializer class
This moves the global ``AUTOMOC/UIC/RCC`` targets initializer generation code into a separate new ``cmQtAutoGenGlobalInitializer`` class.
Diffstat (limited to 'Source/cmQtAutoGenGlobalInitializer.h')
-rw-r--r--Source/cmQtAutoGenGlobalInitializer.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenGlobalInitializer.h b/Source/cmQtAutoGenGlobalInitializer.h
new file mode 100644
index 0000000..42bf62f
--- /dev/null
+++ b/Source/cmQtAutoGenGlobalInitializer.h
@@ -0,0 +1,32 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmQtAutoGenGlobalInitializer_h
+#define cmQtAutoGenGlobalInitializer_h
+
+#include "cmConfigure.h" // IWYU pragma: keep
+
+#include <memory>
+#include <vector>
+
+class cmLocalGenerator;
+class cmQtAutoGenInitializer;
+
+/// @brief Initializes the QtAutoGen generators
+class cmQtAutoGenGlobalInitializer
+{
+public:
+ cmQtAutoGenGlobalInitializer(
+ std::vector<cmLocalGenerator*> const& localGenerators);
+ ~cmQtAutoGenGlobalInitializer();
+
+ bool generate();
+
+private:
+ bool InitializeCustomTargets();
+ bool SetupCustomTargets();
+
+private:
+ std::vector<std::unique_ptr<cmQtAutoGenInitializer>> Initializers_;
+};
+
+#endif