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

Method AddExecutable

Source/cmMakefile.cxx:2038–2049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2036}
2037
2038cmTarget* cmMakefile::AddExecutable(std::string const& exeName,
2039 std::vector<std::string> const& srcs,
2040 bool excludeFromAll)
2041{
2042 cmTarget* target = this->AddNewTarget(cmStateEnums::EXECUTABLE, exeName);
2043 if (excludeFromAll) {
2044 target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
2045 }
2046 target->AddSources(srcs);
2047 this->AddGlobalLinkInformation(*target);
2048 return target;
2049}
2050
2051cmTarget* cmMakefile::AddNewTarget(cmStateEnums::TargetType type,
2052 std::string const& name)

Callers 4

HandleTargetsModeFunction · 0.45
cmAddExecutableCommandFunction · 0.45
FindPackageMethod · 0.45

Calls 4

AddNewTargetMethod · 0.95
AddSourcesMethod · 0.80
SetPropertyMethod · 0.45

Tested by

no test coverage detected