CMake: Move CMakeInstallStep definition to .cpp

It doesn't have to be a Q_OBJECT. Smaller interface. Also de-noise a bit.

Change-Id: I70c056e76646e9de166ded46f6fd4f448a804112
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
hjk
2022-12-19 16:17:36 +01:00
parent 68e15e613f
commit 33eb5ff391
2 changed files with 22 additions and 29 deletions

View File

@@ -3,38 +3,14 @@
#pragma once
#include "cmakeabstractprocessstep.h"
namespace Utils {
class CommandLine;
class StringAspect;
} // namespace Utils
#include <projectexplorer/buildstep.h>
namespace CMakeProjectManager::Internal {
class CMakeInstallStep : public CMakeAbstractProcessStep
{
Q_OBJECT
public:
CMakeInstallStep(ProjectExplorer::BuildStepList *bsl, Utils::Id id);
private:
Utils::CommandLine cmakeCommand() const;
void processFinished(bool success) override;
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
QWidget *createConfigWidget() override;
friend class CMakeInstallStepConfigWidget;
Utils::StringAspect *m_cmakeArguments = nullptr;
};
class CMakeInstallStepFactory : public ProjectExplorer::BuildStepFactory
{
public:
CMakeInstallStepFactory();
};
} // namespace CMakeProjectManager::Internal
} // CMakeProjectManager::Internal