| 326 | } // End of unnamed namespace |
| 327 | |
| 328 | cmQtAutoGenInitializer::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 | |
| 358 | void cmQtAutoGenInitializer::AddAutogenExecutableToDependencies( |
| 359 | cmQtAutoGenInitializer::GenVarsT const& genVars, |
nothing calls this directly
no test coverage detected