mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-07 05:46:42 +00:00
cmTarget: add support for querying all file set names
This commit is contained in:
1 parent
cc4e19710d
commit
aaa18f15cf
2 files changed
+12
No files matched your search
@@ -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