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

Method AddSources

Source/cmTarget.cxx:1356–1366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356void cmTarget::AddSources(std::vector<std::string> const& srcs)
1357{
1358 std::vector<std::string> srcFiles;
1359 for (std::string const& filename : srcs) {
1360 if (!cmGeneratorExpression::StartsWithGeneratorExpression(filename)) {
1361 this->impl->Makefile->GetOrCreateSource(filename);
1362 }
1363 srcFiles.emplace_back(filename);
1364 }
1365 this->AddTracedSources(srcFiles);
1366}
1367
1368struct CreateLocation
1369{

Callers 3

AddLibraryMethod · 0.80
AddExecutableMethod · 0.80
cmAddCustomTargetCommandFunction · 0.80

Calls 3

AddTracedSourcesMethod · 0.95
GetOrCreateSourceMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected