CMake: Do not treat "Source Files" source file group special

The idea was to make the project tree a bit simpler by removing the
auto-generated "Source Files" group that CMake adds. But this left out
"Header Files", which is also auto-generated by CMake and might
surprise users.

So let's remove this special case again.

Change-Id: If87bf9f89e1ff0be855c2e9b915d64d77d51d2be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2019-06-20 14:28:55 +02:00
parent 18d96ba833
commit 18eb0b39c5

View File

@@ -362,7 +362,7 @@ QVector<FolderNode *> addSourceGroups(ProjectNode *targetRoot,
targetRoot); // Only one source group, so do not bother to display any:-)
} else {
for (const QString &sg : td.sourceGroups) {
if (sg.isEmpty() || sg == "Source Files") {
if (sg.isEmpty()) {
sourceGroupNodes.append(targetRoot);
} else {
auto sgNode = createCMakeVFolder(sourceDirectory,