MCPcopy Create free account
hub / github.com/Kitware/CMake / cmQtAutoGenInitializer

Method cmQtAutoGenInitializer

Source/cmQtAutoGenInitializer.cxx:328–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326} // End of unnamed namespace
327
328cmQtAutoGenInitializer::cmQtAutoGenInitializer(
329 cmQtAutoGenGlobalInitializer* globalInitializer,
330 cmGeneratorTarget* genTarget, IntegerVersion qtVersion, bool mocEnabled,
331 bool uicEnabled, bool rccEnabled, bool globalAutogenTarget,
332 bool globalAutoRccTarget)
333 : GlobalInitializer(globalInitializer)
334 , GenTarget(genTarget)
335 , GlobalGen(genTarget->GetGlobalGenerator())
336 , LocalGen(genTarget->GetLocalGenerator())
337 , Makefile(genTarget->Makefile)
338 , PathCheckSum(genTarget->Makefile)
339 , QtVersion(qtVersion)
340{
341 this->AutogenTarget.GlobalTarget = globalAutogenTarget;
342 this->Moc.Enabled = mocEnabled;
343 this->Uic.Enabled = uicEnabled;
344 this->Rcc.Enabled = rccEnabled;
345 this->Rcc.GlobalTarget = globalAutoRccTarget;
346 this->CrossConfig =
347 !this->Makefile->GetSafeDefinition("CMAKE_CROSS_CONFIGS").empty();
348 this->UseBetterGraph =
349 this->GenTarget->GetProperty("AUTOGEN_BETTER_GRAPH_MULTI_CONFIG").IsSet()
350 ? this->GenTarget->GetProperty("AUTOGEN_BETTER_GRAPH_MULTI_CONFIG").IsOn()
351 : (this->QtVersion >= IntegerVersion(6, 8));
352 // AUTOGEN_BETTER_GRAPH_MULTI_CONFIG is set explicitly because it is read by
353 // the qt library
354 this->GenTarget->Target->SetProperty("AUTOGEN_BETTER_GRAPH_MULTI_CONFIG",
355 this->UseBetterGraph ? "ON" : "OFF");
356}
357
358void cmQtAutoGenInitializer::AddAutogenExecutableToDependencies(
359 cmQtAutoGenInitializer::GenVarsT const& genVars,

Callers

nothing calls this directly

Calls 8

IntegerVersionClass · 0.85
GetGlobalGeneratorMethod · 0.45
GetLocalGeneratorMethod · 0.45
emptyMethod · 0.45
IsSetMethod · 0.45
GetPropertyMethod · 0.45
IsOnMethod · 0.45
SetPropertyMethod · 0.45

Tested by

no test coverage detected