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

Method AddXCodeProjBuildRule

Source/cmGlobalXCodeGenerator.cxx:1183–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181}
1182
1183void cmGlobalXCodeGenerator::AddXCodeProjBuildRule(
1184 cmGeneratorTarget* target, std::vector<cmSourceFile*>& sources) const
1185{
1186 std::string listfile = this->GetCMakeInstance()->GetCMakeListFile(
1187 target->GetLocalGenerator()->GetCurrentSourceDirectory());
1188 cmSourceFile* srcCMakeLists = target->Makefile->GetOrCreateSource(
1189 listfile, false, cmSourceFileLocationKind::Known);
1190 srcCMakeLists->SetSpecialSourceType(
1191 cmSourceFile::SpecialSourceType::CMakeLists);
1192 if (!cm::contains(sources, srcCMakeLists)) {
1193 sources.push_back(srcCMakeLists);
1194 }
1195}
1196
1197namespace {
1198

Callers 2

CreateXCodeTargetMethod · 0.95
CreateUtilityTargetMethod · 0.95

Calls 6

GetCMakeListFileMethod · 0.80
GetOrCreateSourceMethod · 0.80
SetSpecialSourceTypeMethod · 0.80
push_backMethod · 0.80
GetCMakeInstanceMethod · 0.45
GetLocalGeneratorMethod · 0.45

Tested by

no test coverage detected