mirror of https://github.com/PentHertz/srsLTE.git
add CMake option for UHD and pcsc
This commit is contained in:
parent
8751645a48
commit
bfae6c5059
|
@ -68,8 +68,10 @@ option(ENABLE_SRSEPC "Build srsEPC application" ON)
|
|||
option(DISABLE_SIMD "disable simd instructions" OFF)
|
||||
|
||||
option(ENABLE_GUI "Enable GUI (using srsGUI)" ON)
|
||||
option(ENABLE_UHD "Enable UHD" ON)
|
||||
option(ENABLE_BLADERF "Enable BladeRF" ON)
|
||||
option(ENABLE_SOAPYSDR "Enable SoapySDR" ON)
|
||||
option(ENABLE_HARDSIM "Enable support for SIM cards" ON)
|
||||
|
||||
option(BUILD_STATIC "Attempt to statically link external deps" OFF)
|
||||
option(RPATH "Enable RPATH" OFF)
|
||||
|
@ -133,6 +135,7 @@ else(POLARSSL_FOUND)
|
|||
endif(POLARSSL_FOUND)
|
||||
|
||||
# Hard-SIM support
|
||||
if(ENABLE_HARDSIM)
|
||||
find_package(PCSCLite)
|
||||
if (PCSCLITE_FOUND)
|
||||
message(STATUS "Building with PCSC support.")
|
||||
|
@ -141,13 +144,16 @@ if (PCSCLITE_FOUND)
|
|||
include_directories(${PCSCLITE_INCLUDE_DIR})
|
||||
#link_directories(${PCSCLITE_LIBRARIES})
|
||||
endif (PCSCLITE_FOUND)
|
||||
endif(ENABLE_HARDSIM)
|
||||
|
||||
# UHD
|
||||
if(ENABLE_UHD)
|
||||
find_package(UHD)
|
||||
if(UHD_FOUND)
|
||||
include_directories(${UHD_INCLUDE_DIRS})
|
||||
link_directories(${UHD_LIBRARY_DIRS})
|
||||
endif(UHD_FOUND)
|
||||
endif(ENABLE_UHD)
|
||||
|
||||
# BladeRF
|
||||
if(ENABLE_BLADERF)
|
||||
|
|
Loading…
Reference in New Issue