(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16)
| 166 | |
| 167 | |
| 168 | def build_from_template_cmake(srcs_graph, srcs_sve, srcs_sve2, srcs_core, srcs_core_fp16): |
| 169 | |
| 170 | line_separator = '\n\t' |
| 171 | |
| 172 | template = f"""{get_template_header()} |
| 173 | |
| 174 | target_sources( |
| 175 | arm_compute_graph |
| 176 | PRIVATE |
| 177 | {line_separator.join(srcs_graph)} |
| 178 | ) |
| 179 | |
| 180 | target_sources( |
| 181 | arm_compute_sve |
| 182 | PRIVATE |
| 183 | {line_separator.join(srcs_sve)} |
| 184 | ) |
| 185 | |
| 186 | target_sources( |
| 187 | arm_compute_sve2 |
| 188 | PRIVATE |
| 189 | {line_separator.join(srcs_sve2)} |
| 190 | ) |
| 191 | |
| 192 | target_sources( |
| 193 | arm_compute_core |
| 194 | PRIVATE |
| 195 | {line_separator.join(srcs_core)} |
| 196 | ) |
| 197 | |
| 198 | target_sources( |
| 199 | arm_compute_core_fp16 |
| 200 | PRIVATE |
| 201 | {line_separator.join(srcs_core_fp16)} |
| 202 | )""" |
| 203 | return template |
| 204 | |
| 205 | |
| 206 | def gather_sources(): |
no test coverage detected