| 1105 | } |
| 1106 | |
| 1107 | bool cmGeneratorTarget::IsInBuildSystem() const |
| 1108 | { |
| 1109 | if (this->IsImported()) { |
| 1110 | return false; |
| 1111 | } |
| 1112 | switch (this->Target->GetType()) { |
| 1113 | case cmStateEnums::EXECUTABLE: |
| 1114 | case cmStateEnums::STATIC_LIBRARY: |
| 1115 | case cmStateEnums::SHARED_LIBRARY: |
| 1116 | case cmStateEnums::MODULE_LIBRARY: |
| 1117 | case cmStateEnums::OBJECT_LIBRARY: |
| 1118 | case cmStateEnums::UTILITY: |
| 1119 | case cmStateEnums::GLOBAL_TARGET: |
| 1120 | return true; |
| 1121 | case cmStateEnums::INTERFACE_LIBRARY: |
| 1122 | // An INTERFACE library is in the build system if it has SOURCES |
| 1123 | // or C++ module filesets. |
| 1124 | if (!this->SourceEntries.empty() || |
| 1125 | !this->Target->GetHeaderSetsEntries().empty() || |
| 1126 | !this->Target->GetCxxModuleSetsEntries().empty()) { |
| 1127 | return true; |
| 1128 | } |
| 1129 | break; |
| 1130 | case cmStateEnums::UNKNOWN_LIBRARY: |
| 1131 | break; |
| 1132 | } |
| 1133 | return false; |
| 1134 | } |
| 1135 | |
| 1136 | bool cmGeneratorTarget::IsNormal() const |
| 1137 | { |
no test coverage detected