Run USB in Nodepp
#libub-dev
🪟: pacman -S mingw-w64-x86_64-libusb
🐧: sudo apt install libusb-1.0-0-devinclude(FetchContent)
FetchContent_Declare(
nodepp
GIT_REPOSITORY https://github.com/NodeppOfficial/nodepp
GIT_TAG origin/main
GIT_PROGRESS ON
)
FetchContent_MakeAvailable(nodepp)
FetchContent_Declare(
nodepp-usb
GIT_REPOSITORY https://github.com/NodeppOfficial/nodepp-usb
GIT_TAG origin/main
GIT_PROGRESS ON
)
FetchContent_MakeAvailable(nodepp-usb)
#[...]
target_link_libraries( #[...]
PUBLIC nodepp nodepp-usb #[...]
)g++ -o main main.cpp -I./include -lusb-1.0 ; ./mainNodepp-USB is distributed under the MIT License. See the LICENSE file for more details.