Skip to content

Commit

Permalink
Use hidapi-libusb on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFlibble committed Jun 20, 2024
1 parent 9bdca8d commit 8b6795a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ set(CMAKE_CXX_STANDARD 17)

find_package(PkgConfig REQUIRED)
pkg_check_modules(yamlcpp REQUIRED yaml-cpp)

if(UNIX AND NOT APPLE)
pkg_check_modules(hidapi REQUIRED hidapi-libusb)
elseif(UNIX AND APPLE)
pkg_check_modules(hidapi REQUIRED hidapi)
else()
message(FATAL_ERROR "Unsupported platform")
endif()

pkg_check_modules(libgeek libgeek)
pkg_check_modules(glm glm)
Expand Down

0 comments on commit 8b6795a

Please sign in to comment.