Changeset 304:ad3c46016584 in freeDiameter for include/freeDiameter/CMakeLists.txt
- Timestamp:
- May 14, 2010, 5:26:53 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/CMakeLists.txt
r236 r304 6 6 # Configurable parameters 7 7 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 9 SET(DEFAULT_CONF_PATH ${CMAKE_INSTALL_PREFIX}/etc/freeDiameter CACHE PATH "Default location of freeDiameter configuration files") 10 11 # The default directory for extension files 12 SET(DEFAULT_EXTENSIONS_PATH ${CMAKE_INSTALL_PREFIX}/lib/fdx CACHE PATH "Default location of freeDiameter extensions") 10 13 11 14 # Disable SCTP support completly ? … … 14 17 OPTION(DEBUG_SCTP "Verbose SCTP (for debug)?" OFF) 15 18 OPTION(SCTP_USE_MAPPED_ADDRESSES "Use v6-mapped v4 addresses in SCTP (workaround some SCTP limitations)?" OFF) 19 ELSE (NOT DISABLE_SCTP) 20 MESSAGE(STATUS "Disabled SCTP support.") 16 21 ENDIF (NOT DISABLE_SCTP) 17 22 … … 19 24 OPTION(ERRORS_ON_TODO "(development) Generate compilation errors on TODO items ?" OFF) 20 25 26 MARK_AS_ADVANCED(DISABLE_SCTP DEBUG_SCTP SCTP_USE_MAPPED_ADDRESSES ERRORS_ON_TODO) 21 27 22 28 ######################## … … 90 96 CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H) 91 97 92 # The default configuration file name93 IF (NOT DEFAULT_CONF_FILE)94 SET(DEFAULT_CONF_FILE "freeDiameter.conf")95 ENDIF (NOT DEFAULT_CONF_FILE)96 98 ########################## 97 99 … … 99 101 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeDiameter-host.h.in ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h) 100 102 101 # Save the FD_LIBS for parent scope103 # Save some variables for the other directories 102 104 SET(FD_LIBS ${FD_LIBS} PARENT_SCOPE) 105 SET(DEFAULT_CONF_PATH ${DEFAULT_CONF_PATH} PARENT_SCOPE) 106 SET(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. 113 INSTALL(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.