mirror of
https://github.com/reactos/CMake.git
synced 2025-02-23 13:32:49 +00:00
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();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
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()
|
||||
{
|
||||
|
@ -26,6 +26,12 @@ class cmGeneratorTarget
|
||||
public:
|
||||
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;
|
||||
cmMakefile* Makefile;
|
||||
cmLocalGenerator* LocalGenerator;
|
||||
|
Loading…
x
Reference in New Issue
Block a user