extend cmake for finding libpcsclite

master
Andre Puschmann 7 years ago
parent a30ad8952c
commit 009c090623

@ -10,19 +10,25 @@ PKG_CHECK_MODULES(PC_PCSCLITE libpcsclite)
IF(NOT PCSCLITE_FOUND) IF(NOT PCSCLITE_FOUND)
FIND_PATH(PCSCLITE_INCLUDE_DIR winscard.h FIND_PATH(PCSCLITE_INCLUDE_DIR
HINTS NAMES winscard.h
/usr/include/PCSC HINTS /usr/include/PCSC
${PC_PCSCLITE_INCLUDEDIR} /usr/local/include/PCSC
${PC_PCSCLITE_INCLUDE_DIRS} ${PC_PCSCLITE_INCLUDEDIR}
${PC_PCSCLITE_INCLUDE_DIRS}/PCSC ${PC_PCSCLITE_INCLUDE_DIRS}
) ${PC_PCSCLITE_INCLUDE_DIRS}/PCSC
${CMAKE_INSTALL_PREFIX}/include
)
FIND_LIBRARY(PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC FIND_LIBRARY(PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC
HINTS HINTS ${PC_PCSCLITE_LIBDIR}
${PC_PCSCLITE_LIBDIR} ${PC_PCSCLITE_LIBRARY_DIRS}
${PC_PCSCLITE_LIBRARY_DIRS} ${CMAKE_INSTALL_PREFIX}/lib
) ${CMAKE_INSTALL_PREFIX}/lib64
PATHS /usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
)
# handle the QUIETLY and REQUIRED arguments and set PCSCLITE_FOUND to TRUE if # handle the QUIETLY and REQUIRED arguments and set PCSCLITE_FOUND to TRUE if
# all listed variables are TRUE # all listed variables are TRUE

Loading…
Cancel
Save