mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-09 01:56:05 -05:00
5e2a9cdd7e
/Users/rainbow/tmp/my/sdrangel/fcdhid/hid-libusb.c:49:10: fatal error: 'libusb-1.0/libusb.h' file not found Undefined symbols for architecture x86_64: "_iconv", referenced from: _get_usb_string in hid-libusb.c.o "_iconv_close", referenced from: _get_usb_string in hid-libusb.c.o "_iconv_open", referenced from: _get_usb_string in hid-libusb.c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
36 lines
518 B
CMake
36 lines
518 B
CMake
project(fcdhid)
|
|
|
|
set(fcdhid_SOURCES
|
|
../apple/apple_compat.c
|
|
hid-libusb.c
|
|
fcdhid.c
|
|
)
|
|
|
|
set(fcdhid_HEADERS
|
|
../apple/apple_compat.h
|
|
fcdhid.h
|
|
hid-libusb.h
|
|
hidapi.h
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBUSB_INCLUDE_DIR}
|
|
${ICONV_INCLUDE_DIR}
|
|
)
|
|
|
|
#add_definitions(-DQT_PLUGIN)
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
add_library(fcdhid SHARED
|
|
${fcdhid_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(fcdhid
|
|
${LIBUSB_LIBRARIES}
|
|
${ICONV_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS fcdhid DESTINATION lib)
|