When importing a C source like this in my build.zig:
const libremidi_translated = b.addTranslateC(.{
.root_source_file = b.path("libremidi/include/libremidi/libremidi.hpp"),
.optimize = optimize,
.target = target,
});
const libremidi_translated_module = libremidi_translated.createModule();
and including it as a module via adding it to .imports of my exe like this: .{ .name = "libremidi", .module = libremidi_translated_module },
i get this error when compiling:
error: translation failure
libremidi\include\libremidi\libremidi.hpp:60:10: error: 'libremidi/api.hpp' not found
#include <libremidi/api.hpp>
I suspect i must provide include path for Zig to discover these missing source files. How do i do that?