view cmake/Modules/FindSCTP.cmake @ 1514:8912a0645645

Add 3GPP TS 29.234 V11.2.0 (2013-06) Add AVPs: - 3GPP-WLAN-APN-Id, OctetString, code 100, section 10.1.15 - Authentication-Method, Enumerated, code 300, section 10.1.5 - Authentication-Information-SIM, OctetString, code 301, section 10.1.6 - Authorization-Information-SIM, OctetString, code 302, section 10.1.7 - WLAN-User-Data, Grouped, code 303, section 10.1.8 - Charging-Data, Grouped, code 304, section 10.1.10 - WLAN-Access, Enumerated, code 305, section 10.1.11 - WLAN-3GPP-IP-Access, Enumerated, code 306, section 10.1.12 - APN-Authorized, Grouped, code 307, section 10.1.14 - APN-Barring-Type, Enumerated, code 309, section 10.1.16 - WLAN-Direct-IP-Access, Enumerated, code 310, section 10.1.17 - Session-Request-Type, Enumerated, code 311, section 10.1.23 - Routing-Policy, IPFilterRule, code 312, section 10.1.24 - Max-Requested-Bandwidth, OctetString, code 313, section 10.1.26 - Charging-Characteristics, Integer32, code 314, section 10.1.27 - Charging-Nodes, Grouped, code 315, section 10.1.28 - Primary-OCS-Charging-Function-Name, DiameterIdentity, code 316, section 10.1.29 - Secondary-OCS-Charging-Function-Name, DiameterIdentity, code 317, section 10.1.30 - Maximum-Number-Accesses, Unsigned32, code 319, section 10.1.38 APN-Id (308) OctetString only present from 3GPP TS 29.234 V6.2.0 (2005-03) to 3GPP TS 29.234 V6.4.0 (2005-09) before being deprecated in 3GPP TS 29.234 V6.5.0 (2005-12). (Not provided here.)
author Luke Mewburn <luke@mewburn.net>
date Wed, 08 Apr 2020 15:48:08 +1000
parents d68f27e7e814
children
line wrap: on
line source

# - Try to find SCTP library and headers
# Once done, this will define
#
#  SCTP_FOUND - system has SCTP
#  SCTP_INCLUDE_DIR - the SCTP include directories
#  SCTP_LIBRARIES - link these to use SCTP

if (SCTP_INCLUDE_DIR AND SCTP_LIBRARIES)
  set(SCTP_FIND_QUIETLY TRUE)
endif (SCTP_INCLUDE_DIR AND SCTP_LIBRARIES)

# Include dir
find_path(SCTP_INCLUDE_DIR
  NAMES netinet/sctp.h
)

# Library
find_library(SCTP_LIBRARY
  NAMES sctp
)

# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
#set(SCTP_PROCESS_INCLUDES SCTP_INCLUDE_DIR)
#set(SCTP_PROCESS_LIBS SCTP_LIBRARY)
#libfind_process(SCTP)


# handle the QUIETLY and REQUIRED arguments and set SCTP_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SCTP DEFAULT_MSG SCTP_LIBRARY SCTP_INCLUDE_DIR)

# If we successfully found the sctp library then add the library to the
# SCTP_LIBRARIES cmake variable otherwise set SCTP_LIBRARIES to nothing.
IF(SCTP_FOUND)
   SET( SCTP_LIBRARIES ${SCTP_LIBRARY} )
ELSE(SCTP_FOUND)
   SET( SCTP_LIBRARIES )
ENDIF(SCTP_FOUND)


# Lastly make it so that the SCTP_LIBRARY and SCTP_INCLUDE_DIR variables
# only show up under the advanced options in the gui cmake applications.
MARK_AS_ADVANCED( SCTP_LIBRARY SCTP_INCLUDE_DIR )

"Welcome to our mercurial repository"