Changeset 658:f198d16fa7f4 in freeDiameter for include/freeDiameter/CMakeLists.txt
- Timestamp:
- Jan 14, 2011, 3:15:23 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/CMakeLists.txt
r561 r658 1 1 #CMake configuration for freeDiameter include directory 2 2 3 Project("freeDiameter include directory" C)3 Project("freeDiameter includes directory" C) 4 4 5 5 ######################## … … 68 68 ENDIF (HAVE_CLOCK_GETTIME) 69 69 70 # LFD _LIBS = libraries required by the libfreeDiameter.71 SET(LFD _LIBS ${CLOCK_GETTIME_LIBS} ${CMAKE_THREAD_LIBS_INIT})70 # LFDPROTO_LIBS = libraries required by the libfdproto. 71 SET(LFDPROTO_LIBS ${CLOCK_GETTIME_LIBS} ${CMAKE_THREAD_LIBS_INIT}) 72 72 73 73 … … 98 98 99 99 100 # FD_LIBS = libraries required by the daemon 101 SET(FD_LIBS ${CMAKE_DL_LIBS} ${SCTP_LIBRARIES}) 100 # Require GNU TLS for building the library 101 FIND_PACKAGE(GnuTLS REQUIRED) 102 INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_DIR}) 103 104 find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h) 105 If ( NOT GCRYPT_INCLUDE_DIR ) 106 MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent") 107 Endif ( NOT GCRYPT_INCLUDE_DIR ) 108 MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR) 109 INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) 110 111 # Also we need libgcrypt to... display its version :( 112 find_library(GCRYPT_LIBRARY 113 NAMES gcrypt 114 ) 115 If ( NOT GCRYPT_LIBRARY ) 116 MESSAGE(SEND_ERROR "Unable to find libgcrypt, please install libgcrypt or equivalent") 117 Endif ( NOT GCRYPT_LIBRARY ) 118 119 120 # LFDCORE_LIBS = libraries required by the libfdcore 121 SET(LFDCORE_LIBS ${CMAKE_DL_LIBS} ${SCTP_LIBRARIES} ${GCRYPT_LIBRARY} ${GNUTLS_LIBRARIES}) 102 122 103 123 ########################## … … 111 131 112 132 # Save some variables for the other directories 113 SET( FD_LIBS ${FD_LIBS}PARENT_SCOPE)114 SET(LFD _LIBS ${LFD_LIBS}PARENT_SCOPE)133 SET(LFDPROTO_LIBS ${LFDPROTO_LIBS} PARENT_SCOPE) 134 SET(LFDCORE_LIBS ${LFDCORE_LIBS} PARENT_SCOPE) 115 135 SET(CMAKE_THREAD_LIBS_INIT ${CMAKE_THREAD_LIBS_INIT} PARENT_SCOPE) 116 136 … … 119 139 120 140 # The headers from this directory are required to develop new extensions for freeDiameter. 121 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h libf reeDiameter.h freeDiameter.h extension.h141 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/freeDiameter-host.h libfdproto.h libfdcore.h extension.h 122 142 DESTINATION ${INSTALL_HEADERS_SUFFIX} 123 143 COMPONENT freeDiameter-dev)
Note: See TracChangeset
for help on using the changeset viewer.