Add a locator to compile a specific cmake target

The locator will show all the targets for the cmake projects, even the /fast one.
It allows people to build a specific target without reloading the whole project.
It's using the make prefix.

Change-Id: Ia6701bb19c1ae390af647d94d0a2834b05a1772a
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Nicolas Arnaud-Cormos
2011-10-21 23:17:58 +02:00
committed by Daniel Teske
parent 6de2b28130
commit aef4a8fbaf
7 changed files with 244 additions and 3 deletions

View File

@@ -187,6 +187,11 @@ void MakeStep::stdOutput(const QString &line)
AbstractProcessStep::stdOutput(line);
}
QStringList MakeStep::buildTargets() const
{
return m_buildTargets;
}
bool MakeStep::buildsBuildTarget(const QString &target) const
{
return m_buildTargets.contains(target);
@@ -202,6 +207,16 @@ void MakeStep::setBuildTarget(const QString &buildTarget, bool on)
m_buildTargets = old;
}
void MakeStep::setBuildTargets(const QStringList &targets)
{
m_buildTargets = targets;
}
void MakeStep::clearBuildTargets()
{
m_buildTargets.clear();
}
QString MakeStep::additionalArguments() const
{
return m_additionalArguments;