CMake: Support building a single file

Fixes: QTCREATORBUG-18898
Change-Id: I0ec24b20bfa8d43093b6e6681ddd752fbdea2088
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2019-05-26 23:48:40 +03:00
committed by Orgad Shaneh
parent a7345b67c1
commit b500119fd7
6 changed files with 140 additions and 0 deletions

View File

@@ -191,6 +191,16 @@ QString CMakeTargetNode::buildKey() const
return generateId(filePath(), m_target);
}
Utils::FilePath CMakeTargetNode::buildDirectory() const
{
return m_buildDirectory;
}
void CMakeTargetNode::setBuildDirectory(const Utils::FilePath &directory)
{
m_buildDirectory = directory;
}
QVariant CMakeTargetNode::data(Core::Id role) const
{
auto value = [this](const QByteArray &key) -> QVariant {