From aaa18f15cf06ec8fd74e18875172b9215f17a088 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 27 Apr 2022 15:03:38 -0400 Subject: cmTarget: add support for querying all file set names --- Source/cmTarget.cxx | 11 +++++++++++ Source/cmTarget.h | 1 + 2 files changed, 12 insertions(+) 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 cmTarget::GetAllFileSetNames() const +{ + std::vector result; + + for (auto const& it : this->impl->FileSets) { + result.push_back(it.first); + } + + return result; +} + std::vector cmTarget::GetAllInterfaceFileSets() const { std::vector result; diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 72497b3..5ed018e 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -292,6 +292,7 @@ public: const std::string& type, cmFileSetVisibility vis); + std::vector GetAllFileSetNames() const; std::vector GetAllInterfaceFileSets() const; static std::string GetFileSetsPropertyName(const std::string& type); -- cgit v0.12