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

Method GenerateScript

Source/cmInstallGetRuntimeDependenciesGenerator.cxx:115–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void cmInstallGetRuntimeDependenciesGenerator::GenerateScript(std::ostream& os)
116{
117 // Track indentation.
118 Indent indent;
119
120 // Begin this block of installation.
121 os << indent << "if(";
122 if (this->FrameworkComponent.empty() ||
123 this->FrameworkComponent == this->LibraryComponent) {
124 os << this->CreateComponentTest(this->LibraryComponent,
125 this->ExcludeFromAll);
126 } else {
127 os << this->CreateComponentTest(this->LibraryComponent, true) << " OR "
128 << this->CreateComponentTest(this->FrameworkComponent,
129 this->ExcludeFromAll);
130 }
131 os << ")\n";
132
133 // Generate the script possibly with per-configuration code.
134 this->GenerateScriptConfigs(os, indent.Next());
135
136 // End this block of installation.
137 os << indent << "endif()\n\n";
138}
139
140void cmInstallGetRuntimeDependenciesGenerator::GenerateScriptForConfig(
141 std::ostream& os, std::string const& config, Indent indent)

Callers

nothing calls this directly

Calls 4

CreateComponentTestMethod · 0.80
emptyMethod · 0.45
GenerateScriptConfigsMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected