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.
39 lines
987 B
CMake
39 lines
987 B
CMake
# - Try to find sctp
|
|
#
|
|
# Once done this will define
|
|
# SCTP_FOUND - System has mbedtls
|
|
# SCTP_INCLUDE_DIRS - The mbedtls include directories
|
|
# SCTP_LIBRARIES - The mbedtls library
|
|
|
|
INCLUDE(FindPkgConfig)
|
|
PKG_CHECK_MODULES(PC_SCTP sctp)
|
|
|
|
#find Mbedtls
|
|
FIND_PATH(
|
|
SCTP_INCLUDE_DIRS
|
|
NAMES netinet/sctp.h
|
|
HINTS ${PC_SCTP_INCLUDEDIR}
|
|
${CMAKE_INSTALL_PREFIX}/include
|
|
PATHS /usr/local/include
|
|
/usr/include
|
|
)
|
|
|
|
FIND_LIBRARY(
|
|
SCTP_LIBRARIES
|
|
NAMES sctp
|
|
HINTS ${PC_SCTP_LIBDIR}
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
|
${CMAKE_INSTALL_PREFIX}/lib64
|
|
PATHS /usr/local/lib
|
|
/usr/local/lib64
|
|
/usr/lib
|
|
/usr/lib64
|
|
)
|
|
|
|
message(STATUS "SCTP LIBRARIES: " ${SCTP_LIBRARIES})
|
|
message(STATUS "SCTP INCLUDE DIRS: " ${SCTP_INCLUDE_DIRS})
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SCTP DEFAULT_MSG SCTP_LIBRARIES SCTP_INCLUDE_DIRS)
|
|
MARK_AS_ADVANCED(SCTP_LIBRARIES SCTP_INCLUDE_DIRS)
|