Post Go back to editing

Cross compiling libiio from linux to windows

Category: Software
Product Number: libiio

Hello, 

I have a project with a cmakelist.txt that I cross compile to windows from ubuntu. This project depends on libiio and I know libiio is build also with cmake to allow cross compile. 

When I build it using x86_64-w64-mingw32 i get the message from cmake:

[build] CMake Error at extern/libiio/CMakeLists.txt:295 (message):
[build] Libusb >= 1.0.10 is required.
 
Which is understandable. I only have the libusb on my ubuntu, not for windows. But i found no documentation for this on the wiki, so here is the question:
how in my cmakelist.txt do I add the libusb windows dlls so cmake can see it and use it to build libiio?
Also i might just be missing the point and dont need them, if so can someone point me in the right direction?