diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-27 19:03:38 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-27 19:04:01 (GMT) |
commit | aaa18f15cf06ec8fd74e18875172b9215f17a088 (patch) | |
tree | 389f3954f18ed31651231ac318d24d244e2155f5 /Source/cmTarget.cxx | |
parent | cc4e19710d4bc5ad5abe20121ac34e8003fae44e (diff) | |
download | CMake-aaa18f15cf06ec8fd74e18875172b9215f17a088.zip CMake-aaa18f15cf06ec8fd74e18875172b9215f17a088.tar.gz CMake-aaa18f15cf06ec8fd74e18875172b9215f17a088.tar.bz2 |
cmTarget: add support for querying all file set names
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 61b3e4d..feb2ee3 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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; |