Open CMake GUI from Project Manager (#4360)
This provides a fast way for engineers who want to configure -> generate -> open project in IDE -> build & run to do so without waiting for a potentially lengthy Project Manager build. Signed-off-by: AMZN-alexpete <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
@@ -185,6 +185,15 @@ namespace O3DE::ProjectManager
|
||||
connect(projectButton, &ProjectButton::RemoveProject, this, &ProjectsScreen::HandleRemoveProject);
|
||||
connect(projectButton, &ProjectButton::DeleteProject, this, &ProjectsScreen::HandleDeleteProject);
|
||||
connect(projectButton, &ProjectButton::BuildProject, this, &ProjectsScreen::QueueBuildProject);
|
||||
connect(projectButton, &ProjectButton::OpenCMakeGUI, this,
|
||||
[this](const ProjectInfo& projectInfo)
|
||||
{
|
||||
AZ::Outcome result = ProjectUtils::OpenCMakeGUI(projectInfo.m_path);
|
||||
if (!result)
|
||||
{
|
||||
QMessageBox::critical(this, tr("Failed to open CMake GUI"), result.GetError(), QMessageBox::Ok);
|
||||
}
|
||||
});
|
||||
|
||||
return projectButton;
|
||||
}
|
||||
@@ -308,7 +317,7 @@ namespace O3DE::ProjectManager
|
||||
}
|
||||
else
|
||||
{
|
||||
projectIter.value()->SetProjectBuildButtonAction();
|
||||
projectIter.value()->ShowBuildRequired();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user