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