CMake: Read CMakeCache.txt

Read the configuration from CMakeCache.txt files.

Change-Id: I7ddf9c9727420634086c973d0134059aac37ace0
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-01-26 17:26:46 +01:00
parent 3c484e3013
commit f71b3652f4
2 changed files with 95 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ public:
QString projectName() const;
QList<CMakeBuildTarget> buildTargets() const;
QList<ProjectExplorer::FileNode *> files() const;
CMakeConfig configuration() const;
signals:
void parsingStarted() const;
@@ -93,6 +94,8 @@ private:
void processCMakeOutput();
void processCMakeError();
CMakeConfig parseConfiguration() const;
const Utils::FileName m_sourceDir;
Utils::FileName m_buildDir;
const ProjectExplorer::Kit *const m_kit;