So I'm working on wrapper for a library (stb_image) that is contained in a
single header file. Right now if I want to get things to compile and work, I
have to tell the nim compiler where that header file is located. For example,
if my project structure is like this:
src/
- main.nim
- header_lib.h
- header_lib.nim
And I'm compiling from that src/ directory, I have to do this: nim c main.nim
--cincludes:. I'd really like to drop that \--includes part, so whoever uses
this wrapper only has to do the import statement.
Is there a way that I can do this without copy and pasting the source of the
header into the .nim wrapper file?