view extensions/test_netemul/CMakeLists.txt @ 1512:f98e2b6e8f42

Add 3GPP TS 29.368 V15.1.0 (2019-09) Add AVPs: - Device-Action, Grouped, code 3001, section 6. 4.2 - Device-Notification, Grouped, code 3002, section 6.4.3 - Trigger-Data, Grouped, code 3003, section 6.4.4 - Payload, OctetString, code 3004, section 6.4.5 - Action-Type, Enumerated, code 3005, section 6.4.6 - Priority-Indication, Enumerated, code 3006, section 6.4.7 - Reference-Number, Unsigned32, code 3007, section 6.4.8 - Request-Status, Enumerated, code 3008, section 6.4.9 - Delivery-Outcome, Enumerated, code 3009, section 6.4.10 - Application-Port-Identifier, Unsigned32, code 3010, section 6.4.11 - Old-Reference-Number, Unsigned32, code 3011, section 6.4.12 - Feature-Supported-In-Final-Target, Unsigned32, code 3012, section 6.4.13
author Luke Mewburn <luke@mewburn.net>
date Tue, 07 Apr 2020 16:04:36 +1000
parents 083317a4e947
children
line wrap: on
line source

# The test_netemul extension
PROJECT("Simple Diameter network emulator proxy extension (latency, PDV, duplicates)" C)

# Parser files
BISON_FILE(test_netemul.y)
FLEX_FILE(test_netemul.l)
SET_SOURCE_FILES_PROPERTIES(lex.test_netemul.c test_netemul.tab.c PROPERTIES COMPILE_FLAGS "-I ${CMAKE_CURRENT_SOURCE_DIR}")

# List of source files
SET( TNEMUL_SRC
	test_netemul.c
	test_netemul.h
	lex.test_netemul.c
	test_netemul.tab.c
	test_netemul.tab.h
	tne_process.c
)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

# Compile these files as a freeDiameter extension
FD_ADD_EXTENSION(test_netemul ${TNEMUL_SRC})


# math functions
CHECK_FUNCTION_EXISTS (sqrt HAVE_SQRT)
IF (HAVE_SQRT)
   SET(MATH_LIBS "")
ELSE (HAVE_SQRT)
   CHECK_LIBRARY_EXISTS (m sqrt "" HAVE_LIBM)
   IF (HAVE_LIBM)
     SET(MATH_LIBS "-lm")
   ENDIF (HAVE_LIBM)
ENDIF (HAVE_SQRT)

TARGET_LINK_LIBRARIES(test_netemul ${MATH_LIBS})

####
## INSTALL section ##

INSTALL(TARGETS test_netemul
	LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX}
	COMPONENT freeDiameter-debug-tools)
"Welcome to our mercurial repository"