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

Method doGenerate

Source/QtDialog/CMakeSetupDialog.cxx:556–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void CMakeSetupDialog::doGenerate()
557{
558 if (this->CurrentState == Generating) {
559 // stop generate
560 doInterrupt();
561 return;
562 }
563
564 // see if we need to configure
565 // we'll need to configure if:
566 // the configure step hasn't been done yet
567 // generate was the last step done
568 if (this->ConfigureNeeded) {
569 if (!prepareConfigure()) {
570 return;
571 }
572 }
573
574 this->enterState(Generating);
575
576 bool config_passed = true;
577 if (this->ConfigureNeeded) {
578 this->CacheValues->cacheModel()->setShowNewProperties(false);
579 this->ProgressFactor = 0.5;
580 config_passed = doConfigureInternal();
581 this->ProgressOffset = 0.5;
582 }
583
584 if (config_passed) {
585 doGenerateInternal();
586 }
587
588 this->ProgressOffset = 0.0;
589 this->ProgressFactor = 1.0;
590 this->CacheValues->cacheModel()->setShowNewProperties(true);
591
592 this->enterState(ReadyConfigure);
593 this->ProgressBar->reset();
594#ifdef QT_WINEXTRAS
595 this->TaskbarButton->progress()->reset();
596#endif
597
598 this->ConfigureNeeded = true;
599}
600
601void CMakeSetupDialog::doOpenProject()
602{

Callers

nothing calls this directly

Calls 2

enterStateMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected