view freeDiameterd/CMakeLists.txt @ 1457:da5e5b9c9623

dbg_dict_dump_json: fix ERROR warnings in log fd_dict_search(TYPE_OF_AVP) matches NULL when the AVP is not derived, so don't call fd_dict_getval() in that case. Fixes the ERROR logs from dbg_dict_dump_json.
author Luke Mewburn <luke@mewburn.net>
date Fri, 28 Feb 2020 11:05:24 +1100
parents fdce8d4575b7
children
line wrap: on
line source

# The subproject name
Project("freeDiameter simple daemon" C)

# Since it uses the libfdcore.h, it needs the include dependencies
INCLUDE_DIRECTORIES(${LFDCORE_INCLUDES})

# Build the executable
ADD_EXECUTABLE(freeDiameterd main.c)

# The version
SET_TARGET_PROPERTIES(freeDiameterd PROPERTIES 
	VERSION ${FD_PROJECT_VERSION_MAJOR}.${FD_PROJECT_VERSION_MINOR}.${FD_PROJECT_VERSION_REV})

# The link command
TARGET_LINK_LIBRARIES(freeDiameterd libfdproto libfdcore ${GNUTLS_LIBRARIES})

####
## INSTALL section ##

INSTALL(TARGETS freeDiameterd
	RUNTIME DESTINATION ${INSTALL_DAEMON_SUFFIX}
	COMPONENT freeDiameter-daemon)
"Welcome to our mercurial repository"