mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
CMake
42 lines
1.2 KiB
CMake
7 years ago
|
# - Find PCSC-Lite
|
||
|
# Find the native PCSC-Lite includes and library
|
||
|
#
|
||
|
# PCSCLITE_INCLUDE_DIR - where to find winscard.h, wintypes.h, etc.
|
||
|
# PCSCLITE_LIBRARIES - List of libraries when using PCSC-Lite.
|
||
|
# PCSCLITE_FOUND - True if PCSC-Lite found.
|
||
|
|
||
|
FIND_PACKAGE(PkgConfig)
|
||
|
PKG_CHECK_MODULES(PC_PCSCLITE libpcsclite)
|
||
|
|
||
|
IF(NOT PCSCLITE_FOUND)
|
||
|
|
||
|
FIND_PATH(PCSCLITE_INCLUDE_DIR winscard.h
|
||
|
HINTS
|
||
|
/usr/include/PCSC
|
||
|
${PC_PCSCLITE_INCLUDEDIR}
|
||
|
${PC_PCSCLITE_INCLUDE_DIRS}
|
||
|
${PC_PCSCLITE_INCLUDE_DIRS}/PCSC
|
||
|
)
|
||
|
|
||
|
FIND_LIBRARY(PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC
|
||
|
HINTS
|
||
|
${PC_PCSCLITE_LIBDIR}
|
||
|
${PC_PCSCLITE_LIBRARY_DIRS}
|
||
|
)
|
||
|
|
||
|
# handle the QUIETLY and REQUIRED arguments and set PCSCLITE_FOUND to TRUE if
|
||
|
# all listed variables are TRUE
|
||
|
INCLUDE(FindPackageHandleStandardArgs)
|
||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCSCLITE DEFAULT_MSG PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR)
|
||
|
|
||
|
IF(PCSCLITE_FOUND)
|
||
|
SET(PCSCLITE_LIBRARIES ${PCSCLITE_LIBRARY})
|
||
|
ELSE(PCSCLITE_FOUND)
|
||
|
SET(PCSCLITE_LIBRARIES )
|
||
|
ENDIF(PCSCLITE_FOUND)
|
||
|
|
||
|
message(STATUS "PCSC LIBRARIES: " ${PCSCLITE_LIBRARY})
|
||
|
message(STATUS "PCSC INCLUDE DIRS: " ${PCSCLITE_INCLUDE_DIR})
|
||
|
|
||
|
MARK_AS_ADVANCED( PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR )
|
||
|
ENDIF(NOT PCSCLITE_FOUND)
|