Cmake: Move some code from project to build configuration

Less use of activeBuildConfiguration and activeTarget.

Change-Id: I9fa77a0084c5701e86530e4f9845c47baddaed4e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2018-12-20 18:51:12 +01:00
parent d59663cfe4
commit ce43f6fbb4
4 changed files with 68 additions and 66 deletions

View File

@@ -32,6 +32,8 @@
#include <cpptools/cpprawprojectpart.h>
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/buildtargetinfo.h>
#include <projectexplorer/deploymentdata.h>
namespace CMakeProjectManager {
class CMakeBuildInfo;
@@ -60,7 +62,9 @@ public:
QString error() const;
QString warning() const;
QList<CMakeBuildTarget> buildTargets() const;
QStringList buildTargetTitles() const;
ProjectExplorer::BuildTargetInfoList appTargets() const;
ProjectExplorer::DeploymentData deploymentData() const;
static Utils::FileName
shadowBuildDirectory(const Utils::FileName &projectFilePath, const ProjectExplorer::Kit *k,