build: replace PCSC with HIDAPI

This commit is contained in:
stoffu 2018-10-26 08:34:10 +09:00
parent 77d2a98e2f
commit f168b4e83a
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
3 changed files with 66 additions and 3 deletions

View file

@ -126,9 +126,9 @@ set(LIBRARIES
ssl)
if(APPLE)
set(LIBRARIES ${LIBRARIES} "-framework IOKit -framework PCSC")
set(LIBRARIES ${LIBRARIES} "-framework IOKit -framework Foundation")
else()
set(LIBRARIES ${LIBRARIES} atomic pcsclite)
set(LIBRARIES ${LIBRARIES} atomic)
endif()
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT WIN32)
@ -146,4 +146,7 @@ else()
set(LIBRARIES ${LIBRARIES} dl)
endif()
find_package(HIDAPI)
set(LIBRARIES ${LIBRARIES} ${HIDAPI_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${LIBRARIES})