CppTools: Add target information to ProjectPart

This is important to be able to map sources to actual things that are
going to be built.

Change-Id: I1aef940767d60192642ed79a1703cff8dfdad9e1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Tobias Hunger
2017-02-27 14:46:45 +01:00
committed by Christian Stenger
parent 831864c56c
commit 802eff3485
9 changed files with 17 additions and 0 deletions

View File

@@ -996,6 +996,7 @@ void QbsProject::updateCppCodeModel()
rpp.setDisplayName(grp.name());
rpp.setProjectFileLocation(grp.location().filePath(),
grp.location().line(), grp.location().column());
rpp.setBuildSystemTarget(uniqueProductName(prd));
QHash<QString, qbs::ArtifactData> filePathToSourceArtifact;
bool hasCFiles = false;