Fix compilation using cmake
This commit is contained in:
parent
8fa83ac70f
commit
b24191a9b9
1 changed files with 9 additions and 9 deletions
|
@ -14,28 +14,28 @@ ENDIF(LIBNFC_SERIAL_AUTOPROBE_ENABLED)
|
|||
|
||||
INCLUDE(LibnfcDrivers)
|
||||
|
||||
IF(PCSC_INCLUDE_DIRS)
|
||||
IF(PCSC_FOUND)
|
||||
INCLUDE_DIRECTORIES(${PCSC_INCLUDE_DIRS})
|
||||
LINK_DIRECTORIES(${PCSC_LIBRARY_DIRS})
|
||||
ENDIF(PCSC_INCLUDE_DIRS)
|
||||
ENDIF(PCSC_FOUND)
|
||||
|
||||
IF(LIBUSB_INCLUDE_DIRS)
|
||||
IF(LIBUSB_FOUND)
|
||||
INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS})
|
||||
LINK_DIRECTORIES(${LIBUSB_LIBRARY_DIRS})
|
||||
ENDIF(LIBUSB_INCLUDE_DIRS)
|
||||
ENDIF(LIBUSB_FOUND)
|
||||
|
||||
# Library
|
||||
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation iso14443-subr mirror-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES})
|
||||
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal iso14443-subr mirror-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES})
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
ADD_LIBRARY(nfc SHARED ${LIBRARY_SOURCES})
|
||||
|
||||
IF(PCSC_INCLUDE_DIRS)
|
||||
IF(PCSC_FOUND)
|
||||
TARGET_LINK_LIBRARIES(nfc ${PCSC_LIBRARIES})
|
||||
ENDIF(PCSC_INCLUDE_DIRS)
|
||||
ENDIF(PCSC_FOUND)
|
||||
|
||||
IF(LIBUSB_INCLUDE_DIRS)
|
||||
IF(LIBUSB_FOUND)
|
||||
TARGET_LINK_LIBRARIES(nfc ${LIBUSB_LIBRARIES})
|
||||
ENDIF(LIBUSB_INCLUDE_DIRS)
|
||||
ENDIF(LIBUSB_FOUND)
|
||||
|
||||
IF(WIN32)
|
||||
TARGET_LINK_LIBRARIES(nfc wsock32)
|
||||
|
|
Loading…
Add table
Reference in a new issue