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

Method AppendIncludeDirectories

Source/cmExtraEclipseCDT4Generator.cxx:578–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578void 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
608void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
609{

Callers 1

CreateCProjectFileMethod · 0.95

Calls 8

AttributeMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45
matchMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
StartElementMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected