CMakeProjectManager: Add lib and app binaries to project tree

Task-number: QTCREATORBUG-28815
Change-Id: I58ebcd2a6935eb4b6746b5fd58e6ab8b97fdef43
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-03-20 12:32:37 +01:00
parent 80fa3339e0
commit 65814b124c
4 changed files with 43 additions and 3 deletions

View File

@@ -198,6 +198,10 @@ void CMakeTargetNode::setTargetInformation(const QList<FilePath> &artifacts, con
m_tooltip += Tr::tr("Build artifacts:") + "<br>" + tmp.join("<br>");
m_artifact = artifacts.first();
}
if (type == "EXECUTABLE")
setProductType(ProductType::App);
else if (type == "SHARED_LIBRARY" || type == "STATIC_LIBRARY")
setProductType(ProductType::Lib);
}
} // CMakeProjectManager::Internal