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

Method TargetTypeEnabled

Source/cmGraphVizWriter.cxx:522–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522bool cmGraphVizWriter::TargetTypeEnabled(
523 cmStateEnums::TargetType targetType) const
524{
525 switch (targetType) {
526 case cmStateEnums::EXECUTABLE:
527 return this->GenerateForExecutables;
528 case cmStateEnums::STATIC_LIBRARY:
529 return this->GenerateForStaticLibs;
530 case cmStateEnums::SHARED_LIBRARY:
531 return this->GenerateForSharedLibs;
532 case cmStateEnums::MODULE_LIBRARY:
533 return this->GenerateForModuleLibs;
534 case cmStateEnums::INTERFACE_LIBRARY:
535 return this->GenerateForInterfaceLibs;
536 case cmStateEnums::OBJECT_LIBRARY:
537 return this->GenerateForObjectLibs;
538 case cmStateEnums::UNKNOWN_LIBRARY:
539 return this->GenerateForUnknownLibs;
540 case cmStateEnums::UTILITY:
541 return this->GenerateForCustomTargets;
542 case cmStateEnums::GLOBAL_TARGET:
543 // Built-in targets like edit_cache, etc.
544 // We don't need/want those in the dot file.
545 return false;
546 default:
547 break;
548 }
549 return false;
550}
551
552std::string cmGraphVizWriter::ItemNameWithAliases(
553 std::string const& itemName) const

Callers 1

ItemExcludedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected