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

@@ -69,6 +69,8 @@ public:
QString tooltip() const final;
QString buildKey() const final;
Utils::FilePath buildDirectory() const;
void setBuildDirectory(const Utils::FilePath &directory);
bool supportsAction(ProjectExplorer::ProjectAction action, const Node *node) const override;
bool addFiles(const QStringList &filePaths, QStringList *notAdded) override;
@@ -79,6 +81,7 @@ public:
private:
QString m_tooltip;
Utils::FilePath m_buildDirectory;
CMakeConfig m_config;
};