CMake: only compile usbbus.c when (at least) one USB driver is enabled

This commit is contained in:
Romuald Conty 2013-03-18 23:32:07 +01:00
parent b6b356b948
commit a422ae2211
2 changed files with 4 additions and 3 deletions

View file

@ -14,6 +14,7 @@ IF(LIBNFC_DRIVER_PN53X_USB)
FIND_PACKAGE(LIBUSB REQUIRED)
ADD_DEFINITIONS("-DDRIVER_PN53X_USB_ENABLED")
SET(DRIVERS_SOURCES ${DRIVERS_SOURCES} "drivers/pn53x_usb")
SET(USB_REQUIRED TRUE)
ENDIF(LIBNFC_DRIVER_PN53X_USB)
IF(LIBNFC_DRIVER_ARYGON)