| 2165 | } |
| 2166 | |
| 2167 | void 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 | |
| 2188 | void cmVisualStudio10TargetGenerator::WriteHeaderSource( |
| 2189 | Elem& e1, cmSourceFile const* sf, ConfigToSettings const& toolSettings) |
no test coverage detected