diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a2d04f4..20143dd 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -35,8 +35,6 @@ list(APPEND fcdproplus_sources if(APPLE) list(APPEND fcdproplus_sources ${CMAKE_CURRENT_SOURCE_DIR}/hid/hidmac.c) -else() - list(APPEND fcdproplus_sources ${CMAKE_CURRENT_SOURCE_DIR}/hid/hid.c) endif() if(APPLE) @@ -45,7 +43,8 @@ if(APPLE) FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) list(APPEND fcdproplus_libs ${COREFOUNDATION_LIBRARY}) else() - list(APPEND fcdproplus_libs ${LIBUSB_LIBRARIES} ) + FIND_LIBRARY(HIDAPI_LIBRARY hidapi-libusb) + list(APPEND fcdproplus_libs ${LIBUSB_LIBRARIES} ${HIDAPI_LIBRARY} ) endif() add_library(gnuradio-fcdproplus SHARED ${fcdproplus_sources}) diff --git a/lib/fcdproplus_impl.h b/lib/fcdproplus_impl.h index 1644ce7..fba4af7 100644 --- a/lib/fcdproplus_impl.h +++ b/lib/fcdproplus_impl.h @@ -23,7 +23,7 @@ #include #include -#include "hidapi.h" +#include namespace gr { namespace fcdproplus {