2015-09-03 01:57:54 +00:00
|
|
|
project(fcdhid)
|
|
|
|
|
|
|
|
set(fcdhid_SOURCES
|
2016-06-28 08:20:47 +00:00
|
|
|
../apple_compat.c
|
2015-09-03 01:57:54 +00:00
|
|
|
hid-libusb.c
|
|
|
|
fcdhid.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(fcdhid_HEADERS
|
2016-06-28 08:20:47 +00:00
|
|
|
../apple_compat.h
|
2015-09-03 01:57:54 +00:00
|
|
|
fcdhid.h
|
|
|
|
hid-libusb.h
|
|
|
|
hidapi.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
#add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(fcdhid SHARED
|
|
|
|
${fcdhid_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(fcdhid
|
|
|
|
${LIBUSB_LIBRARIES}
|
2016-06-28 08:20:47 +00:00
|
|
|
${ICONV_LIBRARY}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
2016-06-29 08:00:38 +00:00
|
|
|
install(TARGETS fcdhid DESTINATION lib)
|