Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

FindPCSCLite.cmake 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # - Find PCSC-Lite
  2. # Find the native PCSC-Lite includes and library
  3. #
  4. # PCSCLITE_INCLUDE_DIR - where to find winscard.h, wintypes.h, etc.
  5. # PCSCLITE_LIBRARIES - List of libraries when using PCSC-Lite.
  6. # PCSCLITE_FOUND - True if PCSC-Lite found.
  7. IF (PCSCLITE_INCLUDE_DIR AND PCSCLITE_LIBRARIES)
  8. # Already in cache, be silent
  9. SET(PCSCLITE_FIND_QUIETLY TRUE)
  10. ENDIF (PCSCLITE_INCLUDE_DIR AND PCSCLITE_LIBRARIES)
  11. IF (NOT WIN32)
  12. FIND_PACKAGE(PkgConfig)
  13. PKG_CHECK_MODULES(PC_PCSCLITE libpcsclite)
  14. ENDIF (NOT WIN32)
  15. FIND_PATH(PCSCLITE_INCLUDE_DIR winscard.h
  16. HINTS
  17. /usr/include/PCSC
  18. ${PC_PCSCLITE_INCLUDEDIR}
  19. ${PC_PCSCLITE_INCLUDE_DIRS}
  20. ${PC_PCSCLITE_INCLUDE_DIRS}/PCSC
  21. )
  22. FIND_LIBRARY(PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC
  23. HINTS
  24. ${PC_PCSCLITE_LIBDIR}
  25. ${PC_PCSCLITE_LIBRARY_DIRS}
  26. )
  27. # handle the QUIETLY and REQUIRED arguments and set PCSCLITE_FOUND to TRUE if
  28. # all listed variables are TRUE
  29. INCLUDE(FindPackageHandleStandardArgs)
  30. FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCSC-Lite DEFAULT_MSG PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR)
  31. IF(PCSCLITE_FOUND)
  32. SET( PCSCLITE_LIBRARIES ${PCSCLITE_LIBRARY} )
  33. ELSE(PCSCLITE_FOUND)
  34. SET( PCSCLITE_LIBRARIES )
  35. ENDIF(PCSCLITE_FOUND)
  36. MARK_AS_ADVANCED( PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR )