CMake: Add CMakeConfigurationKitInformation

Add CMakeConfigurationKitInformation and supporting classes.

This KitInformation can hold CMake settings that are to be applied
for all configurations when this kit is used. It contains e.g.
the Qt version and toolchain configured in the kit by default, but
can be extended to hold more.

The UI will warn if the toolchain or Qt version set up in CMake
does not match up with those used by the Kit, but it will allow
the user to proceed.

Change-Id: I73f06a6535ce14de323130d74af83b9cb2ec0f0f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-02-12 12:23:18 +01:00
parent 3447f8d9f0
commit 18afa34587
9 changed files with 567 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
ProjectExplorer::KitManager::registerKitInformation(new CMakeKitInformation);
ProjectExplorer::KitManager::registerKitInformation(new CMakeGeneratorKitInformation);
ProjectExplorer::KitManager::registerKitInformation(new CMakePreloadCacheKitInformation);
ProjectExplorer::KitManager::registerKitInformation(new CMakeConfigurationKitInformation);
return true;
}