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

Method GenerateMainFile

Source/cmExportInstallAndroidMKGenerator.cxx:39–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool cmExportInstallAndroidMKGenerator::GenerateMainFile(std::ostream& os)
40{
41 std::vector<cmTargetExport const*> allTargets;
42 {
43 auto visitor = [&](cmTargetExport const* te) { allTargets.push_back(te); };
44
45 if (!this->CollectExports(visitor)) {
46 return false;
47 }
48 }
49
50 // Create all the imported targets.
51 for (cmTargetExport const* te : allTargets) {
52 cmGeneratorTarget const* gt = te->Target;
53
54 this->GenerateImportTargetCode(os, gt, this->GetExportTargetType(te));
55
56 ImportPropertyMap properties;
57 if (!this->PopulateInterfaceProperties(te, properties)) {
58 return false;
59 }
60
61 this->PopulateInterfaceLinkLibrariesProperty(
62 gt, cmGeneratorExpression::InstallInterface, properties);
63
64 this->GenerateInterfaceProperties(gt, os, properties);
65 }
66
67 return true;
68}
69
70void cmExportInstallAndroidMKGenerator::GenerateImportHeaderCode(
71 std::ostream& os, std::string const&)

Callers

nothing calls this directly

Tested by

no test coverage detected