mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
fix libusb-1.0 discovery
This commit is contained in:
parent
21add46422
commit
013eaa79ea
@ -1,6 +1,7 @@
|
||||
if(NOT LIBUSB_FOUND)
|
||||
pkg_check_modules (LIBUSB_PKG libusb-1.0)
|
||||
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h
|
||||
find_path(LIBUSB_INCLUDE_DIR
|
||||
NAMES libusb-1.0/libusb.h
|
||||
PATHS
|
||||
${LIBUSB_PKG_INCLUDE_DIRS}
|
||||
/usr/include/libusb-1.0
|
||||
@ -8,7 +9,8 @@ if(NOT LIBUSB_FOUND)
|
||||
/usr/local/include
|
||||
)
|
||||
|
||||
find_library(LIBUSB_LIBRARIES NAMES usb-1.0
|
||||
find_library(LIBUSB_LIBRARIES
|
||||
NAMES usb-1.0
|
||||
PATHS
|
||||
${LIBUSB_PKG_LIBRARY_DIRS}
|
||||
/usr/lib
|
||||
|
@ -16,6 +16,7 @@ set(fcdhid_HEADERS
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBUSB_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
#add_definitions(-DQT_PLUGIN)
|
||||
@ -27,7 +28,7 @@ add_library(fcdhid SHARED
|
||||
|
||||
target_link_libraries(fcdhid
|
||||
${LIBUSB_LIBRARIES}
|
||||
${ICONV_LIBRARY}
|
||||
${ICONV_LIBRARY}
|
||||
)
|
||||
|
||||
install(TARGETS fcdhid DESTINATION lib)
|
||||
|
Loading…
Reference in New Issue
Block a user