forked from qt-creator/qt-creator
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:
@@ -37,6 +37,7 @@ public:
|
||||
Utils::FilePath sourceDirectory;
|
||||
Utils::FilePath makeCommand;
|
||||
Utils::FilePaths libraryDirectories;
|
||||
Utils::FilePaths sourceFiles;
|
||||
|
||||
Backtrace backtrace;
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user