CMake: rework findlibusb module
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 11 Sep 2023 08:04:01 +0000 (10:04 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 10 Oct 2023 14:44:44 +0000 (16:44 +0200)
commit161caf3db4e2ff1c18328c0f628614987e50ffcc
tree2cd11b58f595d9ee0506e4d327c672c4ca435823
parent3dc444f99bbc780f06ee6115c086e30f2dda471a
CMake: rework findlibusb module

Rename the module to FindLibUSB.cmake and use it as the only way
of finding libusb.

Bonus: perform CMake linting of the module.
CMakeLists.txt
cmake/FindLibUSB.cmake [moved from cmake/FindUSB1.cmake with 77% similarity]