| 576 | } |
| 577 | |
| 578 | void cmExtraEclipseCDT4Generator::AppendIncludeDirectories( |
| 579 | cmXMLWriter& xml, std::vector<std::string> const& includeDirs, |
| 580 | std::set<std::string>& emittedDirs) |
| 581 | { |
| 582 | for (std::string const& inc : includeDirs) { |
| 583 | if (!inc.empty()) { |
| 584 | std::string dir = cmSystemTools::CollapseFullPath(inc); |
| 585 | |
| 586 | // handle framework include dirs on OSX, the remainder after the |
| 587 | // Frameworks/ part has to be stripped |
| 588 | // /System/Library/Frameworks/GLUT.framework/Headers |
| 589 | cmsys::RegularExpression frameworkRx("(.+/Frameworks)/.+\\.framework/"); |
| 590 | if (frameworkRx.find(dir)) { |
| 591 | dir = frameworkRx.match(1); |
| 592 | } |
| 593 | |
| 594 | if (emittedDirs.find(dir) == emittedDirs.end()) { |
| 595 | emittedDirs.insert(dir); |
| 596 | xml.StartElement("pathentry"); |
| 597 | xml.Attribute("include", |
| 598 | cmExtraEclipseCDT4Generator::GetEclipsePath(dir)); |
| 599 | xml.Attribute("kind", "inc"); |
| 600 | xml.Attribute("path", ""); |
| 601 | xml.Attribute("system", "true"); |
| 602 | xml.EndElement(); |
| 603 | } |
| 604 | } |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | void cmExtraEclipseCDT4Generator::CreateCProjectFile() const |
| 609 | { |
no test coverage detected