MCPcopy Create free account
hub / github.com/build-cpp/cmkr / inject_includes

Method inject_includes

src/cmake_generator.cpp:523–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected