libusb dependency can be disabled using CMake files - but it remove PN531USB and PN533USB support - this is useful for Windows newer than XP. (Thanks to Fkooman)

This commit is contained in:
Romuald Conty 2009-09-10 09:28:17 +00:00
parent 9e60b6e392
commit 3ec00eb06c
4 changed files with 35 additions and 14 deletions

View file

@ -1,4 +1,4 @@
SET(LIBRARY-SOURCES libnfc dev_pn531 dev_pn533 rs232 bitutils dev_arygon)
SET(LIBRARY-SOURCES libnfc rs232 bitutils dev_arygon)
SET(TOOLS-SOURCES list mftool mfultool initiator target anticol emulate relay)
# find PCSC library and headers
@ -9,7 +9,11 @@ IF(LIBNFC_PCSC)
ENDIF(LIBNFC_PCSC)
# find libusb library and headers
FIND_PACKAGE(LIBUSB REQUIRED)
IF(LIBNFC_USB)
FIND_PACKAGE(LIBUSB REQUIRED)
ADD_DEFINITIONS("-DHAVE_LIBUSB=1")
SET(LIBRARY-SOURCES ${LIBRARY-SOURCES} "dev_pn531 dev_pn533")
ENDIF(LIBNFC_USB)
IF(LIBNFC_VERBOSE_OUTPUT)
ADD_DEFINITIONS("-DDEBUG")