c14f37edc0
This is based off James’ fork on GitHub, with report-descriptor parsing added to the basic HIDAPi codebase.
27 lines
643 B
CMake
27 lines
643 B
CMake
|
|
set(HIDAPI_SOURCES
|
|
hidapi/hidapi.h
|
|
hidapi/hidparse.h
|
|
hidparser/hidparse.c
|
|
)
|
|
|
|
if (WIN32)
|
|
list(APPEND HIDAPI_SOURCES windows/hid.c)
|
|
elseif(APPLE)
|
|
list(APPEND HIDAPI_SOURCES mac/hid.c)
|
|
else()
|
|
list(APPEND HIDAPI_SOURCES linux/hid.c)
|
|
endif(WIN32)
|
|
|
|
|
|
#add_definitions( -DHAVE_CONFIG_H ) # to use fgfs config.h to get FG version, if needed
|
|
#add_definitions( -DLIBVER="SVN 261" ) # add an iaxclient_lib version string
|
|
|
|
add_library(hidapi STATIC
|
|
${HIDAPI_SOURCES}
|
|
)
|
|
|
|
target_include_directories(hidapi PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/hidapi)
|
|
target_include_directories(hidapi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
# eof
|