MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteGroupSources

Method WriteGroupSources

Source/cmVisualStudio10TargetGenerator.cxx:2167–2186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2165}
2166
2167void cmVisualStudio10TargetGenerator::WriteGroupSources(
2168 Elem& e0, std::string const& name, ToolSources const& sources)
2169{
2170 Elem e1(e0, "ItemGroup");
2171 e1.SetHasElements();
2172 for (ToolSource const& s : sources) {
2173 cmSourceFile const* sf = s.SourceFile;
2174 std::string const& source = sf->GetFullPath();
2175 cmSourceGroup const* sourceGroup =
2176 this->LocalGenerator->FindSourceGroup(source);
2177 std::string const& filter = sourceGroup->GetFullName();
2178 std::string path = this->ConvertPath(source, s.RelativePath);
2179 ConvertToWindowsSlash(path);
2180 Elem e2(e1, name);
2181 e2.Attribute("Include", path);
2182 if (!filter.empty()) {
2183 e2.Element("Filter", filter);
2184 }
2185 }
2186}
2187
2188void cmVisualStudio10TargetGenerator::WriteHeaderSource(
2189 Elem& e1, cmSourceFile const* sf, ConfigToSettings const& toolSettings)

Callers 1

WriteGroupsMethod · 0.95

Calls 9

ConvertPathMethod · 0.95
ConvertToWindowsSlashFunction · 0.85
SetHasElementsMethod · 0.80
AttributeMethod · 0.80
GetFullPathMethod · 0.45
FindSourceGroupMethod · 0.45
GetFullNameMethod · 0.45
emptyMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected