Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 831 Bytes

File metadata and controls

42 lines (35 loc) · 831 Bytes

NODEPP-USB

Run USB in Nodepp

Dependencies & CMake Integration

#libub-dev
🪟: pacman -S mingw-w64-x86_64-libusb
🐧: sudo apt install libusb-1.0-0-dev
include(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 #[...]
)

Build & Run

g++ -o main main.cpp -I./include -lusb-1.0 ; ./main

License

Nodepp-USB is distributed under the MIT License. See the LICENSE file for more details.