CMake: Add information about all sourceFiles to the CMakeBuildTarget

Change-Id: I13b978b2cd344c499c405ce11213261bf224296a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Dominik Holland
2023-12-20 10:28:33 +01:00
parent a2567684d0
commit ca3fab3a93
2 changed files with 5 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ public:
Utils::FilePath sourceDirectory;
Utils::FilePath makeCommand;
Utils::FilePaths libraryDirectories;
Utils::FilePaths sourceFiles;
Backtrace backtrace;

View File

@@ -260,6 +260,10 @@ static CMakeBuildTarget toBuildTarget(const TargetDetails &t,
extractBacktraceInformation(t.backtraceGraph, sourceDirectory, id.backtrace, 500));
}
for (const SourceInfo &si : t.sources) {
ct.sourceFiles.append(sourceDirectory.resolvePath(si.path));
}
if (ct.targetType == ExecutableType) {
FilePaths librarySeachPaths;
// Is this a GUI application?