mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
cmTarget: add support for querying all file set names
This commit is contained in:
@@ -2545,6 +2545,17 @@ std::string cmTarget::GetInterfaceFileSetsPropertyName(const std::string& type)
|
||||
return "";
|
||||
}
|
||||
|
||||
std::vector<std::string> cmTarget::GetAllFileSetNames() const
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
|
||||
for (auto const& it : this->impl->FileSets) {
|
||||
result.push_back(it.first);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<std::string> cmTarget::GetAllInterfaceFileSets() const
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
|
||||
@@ -292,6 +292,7 @@ public:
|
||||
const std::string& type,
|
||||
cmFileSetVisibility vis);
|
||||
|
||||
std::vector<std::string> GetAllFileSetNames() const;
|
||||
std::vector<std::string> GetAllInterfaceFileSets() const;
|
||||
|
||||
static std::string GetFileSetsPropertyName(const std::string& type);
|
||||
|
||||
Reference in New Issue
Block a user