Navigation



Ignore:
Timestamp:
May 14, 2010, 5:26:53 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added install directives for cmake; also allow default directory to seek for extensions and configuration files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/CMakeLists.txt

    r268 r304  
    44
    55# Overwrite the debug level for the extension code if configured
    6 OPTION(DEBUG_LEVEL_APP_RADGW "Overwrite debug level for the extension app_radgw if defined" OFF)
     6OPTION(DEBUG_LEVEL_APP_RADGW "Overwrite debug level for the extension app_radgw if defined (valid values: FULL, ANNOYING, CALL...)" OFF)
    77IF (DEBUG_LEVEL_APP_RADGW)
    88     ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_APP_RADGW})
    99ENDIF (DEBUG_LEVEL_APP_RADGW)
     10IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
     11  MARK_AS_ADVANCED(DEBUG_LEVEL_APP_RADGW)
     12ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
    1013
    1114
     
    6568  SET_TARGET_PROPERTIES(${PLGNAME} PROPERTIES SUFFIX ".rgwx" )
    6669  TARGET_LINK_LIBRARIES(${PLGNAME} rgw_common)
     70  INSTALL(TARGETS ${PLGNAME}
     71        LIBRARY DESTINATION ${DEFAULT_EXTENSIONS_PATH}
     72        COMPONENT freeDiameter-radius-gateway)
    6773ENDMACRO(RGWX_ADD_PLUGIN)
    6874
     
    103109           RGWX_ADD_PLUGIN(echodrop ${RG_COMMON_HEADER} rgwx_echodrop.h rgwx_echodrop.c lex.rgwx_echodrop.c rgwx_echodrop.tab.c rgwx_echodrop.tab.h )
    104110        ENDIF (BUILD_RGWX_ECHODROP)
     111       
     112       
     113####
     114## INSTALL section ##
     115
     116INSTALL(TARGETS app_radgw
     117        LIBRARY DESTINATION ${DEFAULT_EXTENSIONS_PATH}
     118        COMPONENT freeDiameter-radius-gateway)
     119
     120# Note that all compiled plugins are added by the RGWX_ADD_PLUGIN macro in the component freeDiameter-radius-gateway as well.
Note: See TracChangeset for help on using the changeset viewer.