| 549 | } |
| 550 | |
| 551 | QString executeProcess(const QString& execName, const QStringList& args) |
| 552 | { |
| 553 | Q_ASSERT(!execName.isEmpty()); |
| 554 | qCDebug(CMAKE) << "Executing:" << execName << "::" << args; |
| 555 | |
| 556 | QProcess p; |
| 557 | QTemporaryDir tmp(QStringLiteral("kdevcmakemanager")); |
| 558 | p.setWorkingDirectory( tmp.path() ); |
| 559 | p.start(execName, args, QIODevice::ReadOnly); |
| 560 | |
| 561 | if(!p.waitForFinished()) |
| 562 | { |
| 563 | qCDebug(CMAKE) << "failed to execute:" << execName << args << p.exitStatus() << p.readAllStandardError(); |
| 564 | } |
| 565 | |
| 566 | QByteArray b = p.readAllStandardOutput(); |
| 567 | QString t = QString::fromUtf8(b.trimmed()); |
| 568 | return t; |
| 569 | } |
| 570 | |
| 571 | QStringList supportedGenerators() |
| 572 | { |
no test coverage detected