diff --git a/libnfc/CMakeLists.txt b/libnfc/CMakeLists.txt index 0ad34da..81fb023 100644 --- a/libnfc/CMakeLists.txt +++ b/libnfc/CMakeLists.txt @@ -12,7 +12,11 @@ SET(CHIPS_SOURCES chips/pn53x) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/chips) # Library's buses -SET(BUSES_SOURCES buses/uart buses/usbbus) +IF(LIBUSB_FOUND) + SET(BUSES_SOURCES buses/uart buses/usbbus) +ELSE(LIBUSB_FOUND) + SET(BUSES_SOURCES buses/uart) +ENDIF(LIBUSB_FOUND) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses) INCLUDE(LibnfcDrivers)