forked from qt-creator/qt-creator
CMake: Use setup functions for a few more cmake related items
Change-Id: I7a1bbea9507d7d168584348a51d557f4a910de47 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -803,11 +803,20 @@ void CMakeBuildStep::updateDeploymentData()
|
||||
|
||||
// CMakeBuildStepFactory
|
||||
|
||||
CMakeBuildStepFactory::CMakeBuildStepFactory()
|
||||
class CMakeBuildStepFactory final : public BuildStepFactory
|
||||
{
|
||||
registerStep<CMakeBuildStep>(Constants::CMAKE_BUILD_STEP_ID);
|
||||
setDisplayName(Tr::tr("CMake Build", "Display name for CMakeProjectManager::CMakeBuildStep id."));
|
||||
setSupportedProjectType(Constants::CMAKE_PROJECT_ID);
|
||||
public:
|
||||
CMakeBuildStepFactory()
|
||||
{
|
||||
registerStep<CMakeBuildStep>(Constants::CMAKE_BUILD_STEP_ID);
|
||||
setDisplayName(Tr::tr("CMake Build", "Display name for CMakeProjectManager::CMakeBuildStep id."));
|
||||
setSupportedProjectType(Constants::CMAKE_PROJECT_ID);
|
||||
}
|
||||
};
|
||||
|
||||
void setupCMakeBuildStep()
|
||||
{
|
||||
static CMakeBuildStepFactory theCMakeBuildStepFactory;
|
||||
}
|
||||
|
||||
} // CMakeProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user