| 81 | } |
| 82 | |
| 83 | void TestCMakeManager::testRelativePaths() |
| 84 | { |
| 85 | IProject* project = loadProject(QStringLiteral("relative_paths"), QStringLiteral("/out")); |
| 86 | |
| 87 | Path codeCpp(project->path(), QStringLiteral("../src/code.cpp")); |
| 88 | QVERIFY(QFile::exists( codeCpp.toLocalFile())); |
| 89 | QList< ProjectBaseItem* > items = project->itemsForPath(IndexedString(codeCpp.pathOrUrl())); |
| 90 | QCOMPARE(items.size(), 1); // once in the target |
| 91 | ProjectBaseItem* fooCppItem = items.first(); |
| 92 | |
| 93 | Path::List includeDirs = project->buildSystemManager()->includeDirectories(fooCppItem); |
| 94 | |
| 95 | Path incDir(project->path(), QStringLiteral("../inc/")); |
| 96 | QVERIFY(includeDirs.contains( incDir )); |
| 97 | } |
| 98 | |
| 99 | void TestCMakeManager::testTargetIncludePaths() |
| 100 | { |
nothing calls this directly
no test coverage detected