summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeprojectimporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectimporter.h')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectimporter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.h b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.h
index 229ccfa36d..350b0b77d6 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.h
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.h
@@ -11,6 +11,7 @@
namespace CMakeProjectManager {
+class CMakeProject;
class CMakeTool;
namespace Internal {
@@ -20,9 +21,11 @@ struct DirectoryData;
class CMakeProjectImporter : public QtSupport::QtProjectImporter
{
public:
- CMakeProjectImporter(const Utils::FilePath &path, const Internal::PresetsData &presetsData);
+ CMakeProjectImporter(const Utils::FilePath &path,
+ const CMakeProjectManager::CMakeProject *project);
Utils::FilePaths importCandidates() final;
+ ProjectExplorer::Target *preferredTarget(const QList<ProjectExplorer::Target *> &possibleTargets) final;
private:
QList<void *> examineDirectory(const Utils::FilePath &importPath,
@@ -44,7 +47,7 @@ private:
void ensureBuildDirectory(DirectoryData &data, const ProjectExplorer::Kit *k) const;
- Internal::PresetsData m_presetsData;
+ const CMakeProject *m_project;
Utils::TemporaryDirectory m_presetsTempDir;
};