Add more forwarding API to cmGeneratorTarget.
This API is the most commonly required in the following patches.
This commit is contained in:
parent
d407dcdbc8
commit
f428ca25f5
|
@ -27,6 +27,36 @@ cmGeneratorTarget::cmGeneratorTarget(cmTarget* t): Target(t)
|
||||||
this->LookupObjectLibraries();
|
this->LookupObjectLibraries();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
int cmGeneratorTarget::GetType() const
|
||||||
|
{
|
||||||
|
return this->Target->GetType();
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
const char *cmGeneratorTarget::GetName() const
|
||||||
|
{
|
||||||
|
return this->Target->GetName();
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
const char *cmGeneratorTarget::GetProperty(const char *prop)
|
||||||
|
{
|
||||||
|
return this->Target->GetProperty(prop);
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
bool cmGeneratorTarget::GetPropertyAsBool(const char *prop)
|
||||||
|
{
|
||||||
|
return this->Target->GetPropertyAsBool(prop);
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
std::vector<cmSourceFile*> const& cmGeneratorTarget::GetSourceFiles()
|
||||||
|
{
|
||||||
|
return this->Target->GetSourceFiles();
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmGeneratorTarget::ClassifySources()
|
void cmGeneratorTarget::ClassifySources()
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,12 @@ class cmGeneratorTarget
|
||||||
public:
|
public:
|
||||||
cmGeneratorTarget(cmTarget*);
|
cmGeneratorTarget(cmTarget*);
|
||||||
|
|
||||||
|
int GetType() const;
|
||||||
|
const char *GetName() const;
|
||||||
|
const char *GetProperty(const char *prop);
|
||||||
|
bool GetPropertyAsBool(const char *prop);
|
||||||
|
std::vector<cmSourceFile*> const& GetSourceFiles();
|
||||||
|
|
||||||
cmTarget* Target;
|
cmTarget* Target;
|
||||||
cmMakefile* Makefile;
|
cmMakefile* Makefile;
|
||||||
cmLocalGenerator* LocalGenerator;
|
cmLocalGenerator* LocalGenerator;
|
||||||
|
|
Loading…
Reference in New Issue