2015-09-03 01:57:54 +00:00
|
|
|
project(fcdhid)
|
|
|
|
|
|
|
|
set(fcdhid_SOURCES
|
2019-05-01 16:19:46 +00:00
|
|
|
../custom/apple/apple_compat.c
|
2015-09-03 01:57:54 +00:00
|
|
|
hid-libusb.c
|
|
|
|
fcdhid.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(fcdhid_HEADERS
|
2019-05-01 16:19:46 +00:00
|
|
|
../custom/apple/apple_compat.h
|
2015-09-03 01:57:54 +00:00
|
|
|
fcdhid.h
|
|
|
|
hid-libusb.h
|
|
|
|
hidapi.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2019-04-15 09:11:15 +00:00
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2019-05-04 11:46:03 +00:00
|
|
|
${Iconv_INCLUDE_DIR}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(fcdhid SHARED
|
|
|
|
${fcdhid_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(fcdhid
|
2019-05-01 09:54:58 +00:00
|
|
|
${LIBUSB_LIBRARIES}
|
2019-05-04 11:46:03 +00:00
|
|
|
${Iconv_LIBRARY}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS fcdhid DESTINATION ${INSTALL_LIB_DIR})
|