| 22 | using namespace KDevelop; |
| 23 | |
| 24 | static 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 | |
| 36 | static CMakeTarget targetByExe(const QHash< KDevelop::Path, QVector<CMakeTarget>>& targets, const KDevelop::Path& exe) |
| 37 | { |