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
|
|
@ -20,13 +20,7 @@ IF(NOT PCSC_FOUND)
|
|||
# Will find PC/SC headers both on Mac and Windows
|
||||
FIND_PATH(PCSC_INCLUDE_DIRS WinSCard.h)
|
||||
# PCSC library is for Mac, WinSCard library is for Windows
|
||||
FIND_LIBRARY(PCSC_LIBRARIES NAMES PCSC WinSCard)
|
||||
|
||||
IF(MINGW)
|
||||
# MinGW32 with PCSC framework use Microsoft SDK's WinSCard.h
|
||||
SET(PCSC_INCLUDE_DIRS)
|
||||
SET(PCSC_INCLUDE_DIRS "$ENV{ProgramFiles}/Microsoft SDKs/Windows/v7.0/Include")
|
||||
ENDIF(MINGW)
|
||||
FIND_LIBRARY(PCSC_LIBRARIES NAMES PCSC libwinscard)
|
||||
ENDIF(NOT PCSC_FOUND)
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue