Cmake not detect libusb 1.0 when i cross compile from Linux to Windows
Hi, I have an issue when i try to cross compile a simple prompt program with only one dependencies : libusb 1.0. i have made two file : CMakeLists.txt and Toolchain-Ubuntu-mingw64.cmake ( thanks to your wiki exemple ).
When i try to compile from linux to linux all working sucessfully :
cmake ./
But when i try to compile from Linux to Windows
cmake -DCMAKE_TOOLCHAIN_FILE=Toolchain-Ubuntu-mingw64.cmake ./
i have error
Sega_Dumper(USB2)/Software Scanning dependencies of target Sega_Dumper [ 50%] Building C object CMakeFiles/Sega_Dumper.dir/main.c.obj [100%] Linking C executable Sega_Dumper.exe /usr/bin/x86_64-w64-mingw32-ld : ne peut trouver -lusb-1.0
here is my file
Cmakelist.txt
CMakeLists.txt Toolchain-Ubuntu-mingw64.cmake
Thanks in advance