| 521 | } |
| 522 | |
| 523 | void inject_includes(const std::vector<std::string> &includes) { |
| 524 | if (!includes.empty()) { |
| 525 | for (const auto &file : includes) { |
| 526 | if (!fs::exists(path / file)) { |
| 527 | throw std::runtime_error("Include not found: " + file); |
| 528 | } |
| 529 | cmd("include")(file); |
| 530 | } |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | void inject_cmake(const std::string &cmake) { |
| 535 | if (!cmake.empty()) { |