Changeset 255:cb4307a1cd29 in freeDiameter for extensions/app_radgw/CMakeLists.txt
- Timestamp:
- Apr 15, 2010, 11:56:32 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/CMakeLists.txt
r254 r255 17 17 radius.c 18 18 md5.c 19 rgw_msg_codes.c 20 rgw_msg_attrtype.c 19 21 ) 20 22 SET( RG_COMMON_HEADER … … 54 56 55 57 58 ########### RADIUS/Diameter translation agent plugins (support for RADIUS protocol) ############ 59 # Use the macro RGWX_ADD_PLUGIN(name files...) to create a plugin. 60 # It is equivalent to add_library with the appropriate parameters 61 # and naming conventions (.rgwx : Radius GateWay eXtension) 62 MACRO(RGWX_ADD_PLUGIN PLGNAME) 63 ADD_LIBRARY(${PLGNAME} MODULE ${ARGN}) 64 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES PREFIX "" ) 65 SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" ) 66 TARGET_LINK_LIBRARIES(${PLGNAME} rgw_common) 67 ENDMACRO(RGWX_ADD_PLUGIN) 68 69 # Example of plugin: 70 OPTION(BUILD_RGWX_SAMPLE "Build sample plugin? (for developers only)" OFF) 71 IF (BUILD_RGWX_SAMPLE) 72 RGWX_ADD_PLUGIN(sample ${RG_COMMON_HEADER} rgwx_sample.c) 73 ENDIF (BUILD_RGWX_SAMPLE) 74 75 # A plugin for debug: dumps RADIUS and Diameter messages state at the time the plugin is called. 76 OPTION(BUILD_RGWX_DEBUG "Build debug plugin? (display status of RADIUS and Diameter messages)" ON) 77 IF (BUILD_RGWX_DEBUG) 78 RGWX_ADD_PLUGIN(debug ${RG_COMMON_HEADER} rgwx_debug.c) 79 ENDIF (BUILD_RGWX_DEBUG) 56 80 57 81 … … 63 87 64 88 65 ########### Sub extensions ############# 66 # Example of support extension: 67 # OPTION(BUILD_RADIUS_GW_SAMPLE "Build sample sub-extension? (for debug only)" OFF) 68 # IF (BUILD_RADIUS_GW_SAMPLE) 69 # ADD_LIBRARY(sub_sample MODULE ${RG_COMMON_HEADER} sub_sample.c) 70 # TARGET_LINK_LIBRARIES(sub_sample rg_common) 71 # ENDIF (BUILD_RADIUS_GW_SAMPLE) 72 73 # OPTION(BUILD_SUB_DEBUG "Build debug sub-extension? (display status of RADIUS and Diameter messages)" ON) 74 # IF (BUILD_SUB_DEBUG) 75 # ADD_LIBRARY(sub_debug MODULE ${RG_COMMON_HEADER} sub_debug.c) 76 # TARGET_LINK_LIBRARIES(sub_debug rg_common) 77 # ENDIF (BUILD_SUB_DEBUG) 89 78 90 # 79 91 # OPTION(BUILD_SUB_ECHO_DROP "Build 'echo/drop' sub-extension? (echo or drop specific RADIUS attributes, no Diameter translation)" ON)
Note: See TracChangeset
for help on using the changeset viewer.