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
  • include/freeDiameter/CMakeLists.txt

    r236 r304  
    66# Configurable parameters
    77
    8 # Name of the default configuration file
    9 OPTION(DEFAULT_CONF_FILE "Default path to configuration file?" OFF)
     8# The default directory for configuration files
     9SET(DEFAULT_CONF_PATH ${CMAKE_INSTALL_PREFIX}/etc/freeDiameter CACHE PATH "Default location of freeDiameter configuration files")
     10
     11# The default directory for extension files
     12SET(DEFAULT_EXTENSIONS_PATH ${CMAKE_INSTALL_PREFIX}/lib/fdx CACHE PATH "Default location of freeDiameter extensions")
    1013
    1114# Disable SCTP support completly ?
     
    1417        OPTION(DEBUG_SCTP "Verbose SCTP (for debug)?" OFF)
    1518        OPTION(SCTP_USE_MAPPED_ADDRESSES "Use v6-mapped v4 addresses in SCTP (workaround some SCTP limitations)?" OFF)
     19ELSE (NOT DISABLE_SCTP)
     20        MESSAGE(STATUS "Disabled SCTP support.")
    1621ENDIF (NOT DISABLE_SCTP)
    1722
     
    1924OPTION(ERRORS_ON_TODO "(development) Generate compilation errors on TODO items ?" OFF)
    2025
     26MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO)
    2127
    2228########################
     
    9096CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H)
    9197
    92 # The default configuration file name
    93 IF (NOT DEFAULT_CONF_FILE)
    94    SET(DEFAULT_CONF_FILE "freeDiameter.conf")
    95 ENDIF (NOT DEFAULT_CONF_FILE)
    9698##########################
    9799
     
    99101CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeDiameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h)
    100102
    101 # Save the FD_LIBS for parent scope
     103# Save some variables for the other directories
    102104SET(FD_LIBS ${FD_LIBS} PARENT_SCOPE)
     105SET(DEFAULT_CONF_PATH ${DEFAULT_CONF_PATH} PARENT_SCOPE)
     106SET(DEFAULT_EXTENSIONS_PATH ${DEFAULT_EXTENSIONS_PATH} PARENT_SCOPE)
     107
     108
     109####
     110## INSTALL section ##
     111
     112# The headers from this directory are required to develop new extensions for freeDiameter.
     113INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h libfreeDiameter.h freeDiameter.h extension.h
     114        DESTINATION include/freeDiameter
     115        COMPONENT freeDiameter-dev)
     116
Note: See TracChangeset for help on using the changeset viewer.