|
|
@@ -1543,10 +1543,12 @@ bool cmGlobalGenerator::Compute()
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- // Iterate through all targets and set up AUTOMOC, AUTOUIC and AUTORCC
|
|
|
- if (!this->QtAutoGen()) {
|
|
|
+#ifndef CMAKE_BOOTSTRAP
|
|
|
+ cmQtAutoGenGlobalInitializer qtAutoGen(this->LocalGenerators);
|
|
|
+ if (!qtAutoGen.InitializeCustomTargets()) {
|
|
|
return false;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
// Add generator specific helper commands
|
|
|
for (const auto& localGen : this->LocalGenerators) {
|
|
|
@@ -1563,6 +1565,12 @@ bool cmGlobalGenerator::Compute()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+#ifndef CMAKE_BOOTSTRAP
|
|
|
+ if (!qtAutoGen.SetupCustomTargets()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+#endif
|
|
|
+
|
|
|
for (const auto& localGen : this->LocalGenerators) {
|
|
|
cmMakefile* mf = localGen->GetMakefile();
|
|
|
for (const auto& g : mf->GetInstallGenerators()) {
|
|
|
@@ -1764,16 +1772,6 @@ void cmGlobalGenerator::ComputeTargetOrder(cmGeneratorTarget const* gt,
|
|
|
entry->second = index++;
|
|
|
}
|
|
|
|
|
|
-bool cmGlobalGenerator::QtAutoGen()
|
|
|
-{
|
|
|
-#ifndef CMAKE_BOOTSTRAP
|
|
|
- cmQtAutoGenGlobalInitializer initializer(this->LocalGenerators);
|
|
|
- return initializer.generate();
|
|
|
-#else
|
|
|
- return true;
|
|
|
-#endif
|
|
|
-}
|
|
|
-
|
|
|
bool cmGlobalGenerator::AddHeaderSetVerification()
|
|
|
{
|
|
|
for (auto const& gen : this->LocalGenerators) {
|