mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -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 "";
|
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> cmTarget::GetAllInterfaceFileSets() const
|
||||||
{
|
{
|
||||||
std::vector<std::string> result;
|
std::vector<std::string> result;
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ public:
|
|||||||
const std::string& type,
|
const std::string& type,
|
||||||
cmFileSetVisibility vis);
|
cmFileSetVisibility vis);
|
||||||
|
|
||||||
|
std::vector<std::string> GetAllFileSetNames() const;
|
||||||
std::vector<std::string> GetAllInterfaceFileSets() const;
|
std::vector<std::string> GetAllInterfaceFileSets() const;
|
||||||
|
|
||||||
static std::string GetFileSetsPropertyName(const std::string& type);
|
static std::string GetFileSetsPropertyName(const std::string& type);
|
||||||
|
|||||||
Reference in New Issue
Block a user