| 853 | } |
| 854 | |
| 855 | cmTarget* 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 | |
| 873 | bool cmPackageInfoReader::ImportTargets(cmMakefile* makefile, |
| 874 | cmExecutionStatus& status, bool global) |
no test coverage detected