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

Function targetByName

plugins/cmake/testing/ctestutils.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using namespace KDevelop;
23
24static CMakeTarget targetByName(const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, const QString& name)
25{
26 for (const auto& subdir: targets) {
27 for (const auto &target: subdir) {
28 if (target.name == name)
29 return target;
30 }
31 }
32
33 return {};
34}
35
36static CMakeTarget targetByExe(const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, const KDevelop::Path& exe)
37{

Callers 1

createTestSuitesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected