Improve Windows platform support (Thanks to Glenn)
* Remove stdint for MSVC since MSVC is not supported anymore; * Fix libusb detection under Windows; * Fix PCSC detection (mingw-w64 now have PC/SC Winscard interface); * Ajust CMake files in order to make it compile (some examples have been disabled).
This commit is contained in:
parent
f32013aba5
commit
58c5662f35
9 changed files with 16 additions and 745 deletions
|
|
@ -1,4 +1,5 @@
|
|||
SET(EXAMPLES-SOURCES nfc-anticol nfc-dep-initiator nfc-dep-target nfc-emulate-forum-tag4 nfc-emulate-tag nfc-emulate-uid nfc-list nfc-mfclassic nfc-mfultralight nfc-poll nfc-relay nfc-relay-picc pn53x-diagnose pn53x-sam pn53x-tamashell)
|
||||
SET(EXAMPLES-SOURCES nfc-anticol nfc-dep-initiator nfc-dep-target nfc-emulate-forum-tag4 nfc-emulate-tag nfc-emulate-uid nfc-list nfc-poll nfc-relay nfc-relay-picc)
|
||||
#TODO nfc-mfclassic nfc-mfultralight pn53x-diagnose pn53x-sam pn53x-tamashell
|
||||
|
||||
# XXX: Examples should not use private API!
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libnfc)
|
||||
|
|
@ -7,7 +8,7 @@ INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS} ${PCSC_INCLUDE_DIRS})
|
|||
LINK_DIRECTORIES(${LIBUSB_LIBRARY_DIRS} ${PCSC_LIBRARY_DIRS})
|
||||
|
||||
ADD_LIBRARY(nfc-utils nfc-utils)
|
||||
ADD_LIBRARY(mifare mifare)
|
||||
#ADD_LIBRARY(mifare mifare)
|
||||
|
||||
# Examples
|
||||
FOREACH(source ${EXAMPLES-SOURCES})
|
||||
|
|
@ -17,8 +18,8 @@ FOREACH(source ${EXAMPLES-SOURCES})
|
|||
INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples)
|
||||
ENDFOREACH(source)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nfc-mfclassic mifare)
|
||||
TARGET_LINK_LIBRARIES(nfc-mfultralight mifare)
|
||||
#TARGET_LINK_LIBRARIES(nfc-mfclassic mifare)
|
||||
#TARGET_LINK_LIBRARIES(nfc-mfultralight mifare)
|
||||
|
||||
IF(NOT WIN32)
|
||||
# Manuals for the examples
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue