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

Method AddLibraryComponent

Source/cmPackageInfoReader.cxx:855–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855cmTarget* cmPackageInfoReader::AddLibraryComponent(
856 cmMakefile* makefile, cmStateEnums::TargetType type, std::string const& name,
857 Json::Value const& data, std::string const& package, bool global) const
858{
859 // Create the imported target.
860 cmTarget* const target = makefile->AddImportedTarget(name, type, global);
861 target->SetOrigin(cmTarget::Origin::Cps);
862
863 // Set target properties.
864 this->SetTargetProperties(makefile, target, data, package, {});
865 auto const& cfgData = data["configurations"];
866 for (auto ci = cfgData.begin(), ce = cfgData.end(); ci != ce; ++ci) {
867 this->SetTargetProperties(makefile, target, *ci, package, IterKey(ci));
868 }
869
870 return target;
871}
872
873bool cmPackageInfoReader::ImportTargets(cmMakefile* makefile,
874 cmExecutionStatus& status, bool global)

Callers 1

ImportTargetsMethod · 0.95

Calls 6

SetTargetPropertiesMethod · 0.95
IterKeyFunction · 0.85
AddImportedTargetMethod · 0.80
SetOriginMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected