2015-09-02 21:57:54 -04:00
|
|
|
project(fcdhid)
|
|
|
|
|
|
|
|
set(fcdhid_SOURCES
|
2017-05-15 06:32:16 -04:00
|
|
|
../apple/apple_compat.c
|
2015-09-02 21:57:54 -04:00
|
|
|
hid-libusb.c
|
|
|
|
fcdhid.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(fcdhid_HEADERS
|
2017-05-15 06:32:16 -04:00
|
|
|
../apple/apple_compat.h
|
2015-09-02 21:57:54 -04:00
|
|
|
fcdhid.h
|
|
|
|
hid-libusb.h
|
|
|
|
hidapi.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2019-04-15 05:11:15 -04:00
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2019-04-23 02:18:54 -04:00
|
|
|
${ICONV_INCLUDE_DIR}
|
2015-09-02 21:57:54 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
#add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(fcdhid SHARED
|
|
|
|
${fcdhid_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(fcdhid
|
|
|
|
${LIBUSB_LIBRARIES}
|
2019-04-15 05:11:15 -04:00
|
|
|
${ICONV_LIBRARY}
|
2015-09-02 21:57:54 -04:00
|
|
|
)
|
2016-02-24 05:51:36 -05:00
|
|
|
|
2016-06-29 04:00:38 -04:00
|
|
|
install(TARGETS fcdhid DESTINATION lib)
|