MCPcopy Create free account
hub / github.com/KDE/kdevelop / findExecutable

Function findExecutable

plugins/cmake/cmakeutils.cpp:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274QString findExecutable()
275{
276 auto cmake = QStandardPaths::findExecutable(QStringLiteral("cmake"));
277#ifdef Q_OS_WIN
278 if (cmake.isEmpty())
279 cmake = QStandardPaths::findExecutable(QStringLiteral("cmake"), {
280 QStringLiteral("C:\\Program Files (x86)\\CMake\\bin"),
281 QStringLiteral("C:\\Program Files\\CMake\\bin"),
282 QStringLiteral("C:\\Program Files (x86)\\CMake 2.8\\bin"),
283 QStringLiteral("C:\\Program Files\\CMake 2.8\\bin")});
284#endif
285 return cmake;
286}
287
288QString cmakeExecutableVersion(const QString& cmakeExecutable)
289{

Callers 12

CMakeManagerMethod · 0.70
currentCMakeExecutableFunction · 0.70
defaultExecutablePathMethod · 0.50
findPythonMethod · 0.50
findExecutableMethod · 0.50
startProcessMethod · 0.50
testStartProcessMethod · 0.50
testStartProcessEnvMethod · 0.50
CompilerProviderMethod · 0.50
initTestCaseMethod · 0.50
TestCMakeFileApiClass · 0.50

Calls 1

isEmptyMethod · 0.45

Tested by 3

testStartProcessMethod · 0.40
testStartProcessEnvMethod · 0.40
initTestCaseMethod · 0.40