CMake: Add method to query server mode support to CMakeTool

Change-Id: I88ce643749d2d8f801b20a2c6d7555348292af94
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2016-09-28 15:48:10 +02:00
parent 3ef11019e2
commit 8d608d2a74
2 changed files with 9 additions and 0 deletions

View File

@@ -199,6 +199,14 @@ TextEditor::Keywords CMakeTool::keywords()
return TextEditor::Keywords(m_variables, m_functions, m_functionArgs);
}
bool CMakeTool::hasServerMode() const
{
supportedGenerators(); // server mode is queried from the output of -E capabilities,
// just like the generators
return m_hasServerMode;
}
bool CMakeTool::isAutoDetected() const
{
return m_isAutoDetected;

View File

@@ -87,6 +87,7 @@ public:
bool isAutoRun() const;
QList<Generator> supportedGenerators() const;
TextEditor::Keywords keywords();
bool hasServerMode() const;
bool isAutoDetected() const;
QString displayName() const;