mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
32 lines
491 B
CMake
32 lines
491 B
CMake
project(fcdhid)
|
|
|
|
set(fcdhid_SOURCES
|
|
../custom/apple/apple_compat.c
|
|
hid-libusb.c
|
|
fcdhid.c
|
|
)
|
|
|
|
set(fcdhid_HEADERS
|
|
../custom/apple/apple_compat.h
|
|
fcdhid.h
|
|
hid-libusb.h
|
|
hidapi.h
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBUSB_INCLUDE_DIR}
|
|
${Iconv_INCLUDE_DIR}
|
|
)
|
|
|
|
add_library(fcdhid SHARED
|
|
${fcdhid_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(fcdhid
|
|
${LIBUSB_LIBRARIES}
|
|
${Iconv_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS fcdhid DESTINATION ${INSTALL_LIB_DIR})
|