diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 61b3e4d4c4..feb2ee3909 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 72497b340b..5ed018e83f 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);