26#ifndef __CMAKE_PROJECT_MANAGER__
27#define __CMAKE_PROJECT_MANAGER__
93 Q_ENUM(CMakeProjectManagerStage)
109 bool success()
const;
112 QString getCurrentStage()
const;
115 QStringList getStages()
const;
118 QString getStageName(CMakeProjectManagerStage value)
const;
135 void processFinished(
int exitCode, QProcess::ExitStatus exitStatus);
139 QString camitkFilePath;
142 QProcess* currentProcess;
163 int currentStageIndex;
166 void executeNextStage();
171 void generateSourceFiles();
172 void configureCMake();
174 void runCamiTKConfig();
175 void checkIntegration();
#define CAMITKEXTENSIONGENERATOR_EXPORT
Definition CamiTKExtensionGeneratorAPI.h:33
Definition CMakeProjectManager.h:78
CMakeProjectManagerStage
Known stages that can be set in the stage configuration.
Definition CMakeProjectManager.h:84
@ Configure_CMake
cmake configure
Definition CMakeProjectManager.h:87
@ Generate_Source_Files
calls camitk-extensiongenerator (fist phase with destination dir equals to the CamiTK file path)
Definition CMakeProjectManager.h:86
@ Run_CamiTK_Config
check camitk-config –config (output can be check for new Standard extension)
Definition CMakeProjectManager.h:89
@ Build_Project
cmake build
Definition CMakeProjectManager.h:88
@ Check_Integration
(for Standard extension) check what is build action extensions defined in the CamiTK file were build ...
Definition CMakeProjectManager.h:90
@ Cleanup
remove temporary directory used during the previous stages
Definition CMakeProjectManager.h:91
@ Check_System
check that cmake, camitk-extensiongenerator and camitk-config are found and usable
Definition CMakeProjectManager.h:85
CMakeProjectManager(const QString &camitkFilePath, QObject *parent=nullptr)
constructor
Definition CMakeProjectManager.cpp:38
bool success() const
current value of the process
Definition CMakeProjectManager.cpp:93
void allStagesFinished(bool status)
sent when all the stage are finished (with the given overall status)
void stageStarted(const QString &stage)
sent when the given stage is starting
void stageFinished(const QString &stage, bool success, const QString &output)
sent when the given stage is finished (with the given status and output)
Definition PersistenceManager.h:30