CMake: Introduce project importer for cmake projects

Change-Id: Ie215e1c3f0286f6d98d10865e2b0a16b01391cd5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-08-25 14:33:44 +02:00
parent c09b3709b9
commit 4f40d7778d
11 changed files with 632 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include "cmake_global.h"
#include "cmakeprojectimporter.h"
#include "treescanner.h"
#include <projectexplorer/extracompiler.h>
@@ -36,6 +37,8 @@
#include <QFuture>
#include <QHash>
#include <memory>
QT_BEGIN_NAMESPACE
class QFileSystemWatcher;
QT_END_NAMESPACE
@@ -102,6 +105,8 @@ public:
// Context menu actions:
void buildCMakeTarget(const QString &buildTarget);
ProjectExplorer::ProjectImporter *projectImporter() const final;
signals:
/// emitted when cmake is running:
void parsingStarted();
@@ -135,6 +140,7 @@ private:
Internal::TreeScanner m_treeScanner;
QHash<QString, bool> m_mimeBinaryCache;
QList<const ProjectExplorer::FileNode *> m_allFiles;
mutable std::unique_ptr<Internal::CMakeProjectImporter> m_projectImporter;
friend class Internal::CMakeBuildConfiguration;
friend class Internal::CMakeBuildSettingsWidget;