Fixes CMake build (Fixes Issue 211).
Thanks to Alex Lian
This commit is contained in:
parent
f1b55b5390
commit
d6c97cb974
3 changed files with 11 additions and 13 deletions
|
|
@ -6,12 +6,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/chips)
|
|||
SET(BUSES_SOURCES buses/uart)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/buses)
|
||||
|
||||
# Library's drivers
|
||||
SET(LIBNFC_SERIAL_AUTOPROBE_ENABLED OFF CACHE BOOL "Allow serial ports to be probed (can seriously disturb connected serial devices)")
|
||||
IF(LIBNFC_SERIAL_AUTOPROBE_ENABLED)
|
||||
ADD_DEFINITIONS("-DSERIAL_AUTOPROBE_ENABLED")
|
||||
ENDIF(LIBNFC_SERIAL_AUTOPROBE_ENABLED)
|
||||
|
||||
INCLUDE(LibnfcDrivers)
|
||||
|
||||
IF(PCSC_FOUND)
|
||||
|
|
@ -25,8 +19,11 @@ IF(LIBUSB_FOUND)
|
|||
ENDIF(LIBUSB_FOUND)
|
||||
|
||||
# Library
|
||||
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal iso14443-subr mirror-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES})
|
||||
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal iso14443-subr mirror-subr target-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
IF(LIBNFC_DEBUG_OUTPUT)
|
||||
LIST(APPEND LIBRARY_SOURCES log-printf)
|
||||
ENDIF(LIBNFC_DEBUG_OUTPUT)
|
||||
ADD_LIBRARY(nfc SHARED ${LIBRARY_SOURCES})
|
||||
|
||||
IF(PCSC_FOUND)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue