mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 21:34:32 +00:00
cmMakefile: Add imported target accessor
This commit is contained in:
parent
0fb187cc58
commit
7a6caae1a7
@ -1766,6 +1766,18 @@ const char* cmMakefile::GetCurrentBinaryDirectory() const
|
||||
return this->StateSnapshot.GetDirectory().GetCurrentBinary();
|
||||
}
|
||||
|
||||
std::vector<cmTarget*> cmMakefile::GetImportedTargets() const
|
||||
{
|
||||
std::vector<cmTarget*> tgts;
|
||||
tgts.reserve(this->ImportedTargets.size());
|
||||
for (TargetMap::const_iterator it = this->ImportedTargets.begin();
|
||||
it != this->ImportedTargets.end(); ++it)
|
||||
{
|
||||
tgts.push_back(it->second);
|
||||
}
|
||||
return tgts;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmMakefile::AddIncludeDirectories(const std::vector<std::string> &incs,
|
||||
bool before)
|
||||
|
@ -390,6 +390,7 @@ public:
|
||||
{
|
||||
return this->ImportedTargetsOwned;
|
||||
}
|
||||
std::vector<cmTarget*> GetImportedTargets() const;
|
||||
|
||||
cmTarget* FindTarget(const std::string& name,
|
||||
bool excludeAliases = false) const;
|
||||
|
Loading…
Reference in New Issue
Block a user