mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
b2f52aad89
Former-commit-id: 4d3d9c01b169991757587a67479094186d52e6e8
17 lines
344 B
CMake
17 lines
344 B
CMake
project(hidapi)
|
|
|
|
#add libusb and pthreads
|
|
find_package(libusb-1.0 REQUIRED)
|
|
find_package(Threads REQUIRED)
|
|
|
|
include_directories(
|
|
../../include/hidapi
|
|
${LIBUSB_1_INCLUDE_DIRS})
|
|
|
|
add_library(hidapi-libusb hid-libusb.c)
|
|
|
|
target_link_libraries(hidapi-libusb
|
|
${LIBUSB_1_LIBRARIES} #apt-get install libusb-1.0-0-dev
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
)
|