I'm trying to get an MWE working using ONNX and the NPU, but I can't really get going.
In particular I'm stuck on what should be the simple bit; building a small cmake project. bitbake can't find onnxruntime_c_api.h and I'm not sure how to tell it where to look. Presumably the include path should go in CMakeLists.txt but I don't know how to specify it in such a way that it will use the correct one, i.e. not the system install of onnxruntime, but the yocto one.
If anyone has a minimal working example of an onnx project in cmake, or can offer help on the more general problem of include paths, I would be very grateful.
P.S. I anticipate I'll face a similar problem with the linking, so advice on that wouldn't go amiss either.
Just link to any of the copies of onnxruntime_c_api.h in the build folder, I guess. I'd prefer not to link using an absolute path because it locks the code to yocto, but this at least works. The link `-lonnxruntime` works without issue.