Add cLibrary macro to make linking to dynamic and static libraries easier
I'm not really sure how it should work, but it seems a good idea for Nimterop to provide this along with everything else C library related.
It'd also be useful because the Visual C compiler links libraries differently than GCC and will crash the compiler if you try to link it like normal.
VCC expects you to pass a .lib file to the linker, so replace -lSDL2 with SDL2.lib for example.
The macro should look like:
cLibrary("SDL2")
I don't think it should add the absolute path to your Nim source code, as you probably don't have libraries there.
Another macro that returns a string consisting of the compiler name, platform and architecture could also be useful, for example vcc-windows-amd64 or gcc-windows-i386.
This way, I could ship different .lib and .a files with a wrapper and it works no matter the users compiler or environment.
This macro could be called something like cTargetTripple