|
|
@@ -36,6 +36,8 @@ QCMake::QCMake(QObject* p)
|
|
|
cmSystemTools::DisableRunCommandOutput();
|
|
|
cmSystemTools::SetRunCommandHideConsole(true);
|
|
|
cmSystemTools::SetMessageCallback(QCMake::messageCallback, this);
|
|
|
+ cmSystemTools::SetStdoutCallback(QCMake::stdoutCallback, this);
|
|
|
+ cmSystemTools::SetStderrCallback(QCMake::stderrCallback, this);
|
|
|
|
|
|
this->CMakeInstance = new cmake;
|
|
|
this->CMakeInstance->SetCMakeEditCommand(
|
|
|
@@ -356,6 +358,20 @@ void QCMake::messageCallback(const char* msg, const char* /*title*/,
|
|
|
QCoreApplication::processEvents();
|
|
|
}
|
|
|
|
|
|
+void QCMake::stdoutCallback(const char* msg, size_t len, void* cd)
|
|
|
+{
|
|
|
+ QCMake* self = reinterpret_cast<QCMake*>(cd);
|
|
|
+ emit self->outputMessage(QString::fromLocal8Bit(msg,int(len)));
|
|
|
+ QCoreApplication::processEvents();
|
|
|
+}
|
|
|
+
|
|
|
+void QCMake::stderrCallback(const char* msg, size_t len, void* cd)
|
|
|
+{
|
|
|
+ QCMake* self = reinterpret_cast<QCMake*>(cd);
|
|
|
+ emit self->outputMessage(QString::fromLocal8Bit(msg,int(len)));
|
|
|
+ QCoreApplication::processEvents();
|
|
|
+}
|
|
|
+
|
|
|
QString QCMake::binaryDirectory() const
|
|
|
{
|
|
|
return this->BinaryDirectory;
|