Changeset 316:aa8f41bca657 in freeDiameter for include/freeDiameter/CMakeLists.txt
- Timestamp:
- May 19, 2010, 11:54:55 AM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/CMakeLists.txt
r313 r316 28 28 INCLUDE (TestBigEndian) 29 29 30 # We use dlopen and dlclose31 SET(FD_LIBS ${FD_LIBS} ${CMAKE_DL_LIBS})30 # Check byte ordering 31 TEST_BIG_ENDIAN(HOST_BIG_ENDIAN) 32 32 33 # We need the threads library (pthread) 33 # We need the getopt_long function 34 CHECK_FUNCTION_EXISTS (getopt_long HAVE_LONG_OPTIONS) 35 IF (NOT HAVE_LONG_OPTIONS) 36 MESSAGE(SEND_ERROR "The getopt_long function is not found, please add needed library in build system") 37 ENDIF (NOT HAVE_LONG_OPTIONS) 38 39 # Check if ntohll is provided on the system 40 CHECK_SYMBOL_EXISTS(ntohll "" HAVE_NTOHLL) 41 42 # malloc.h ? 43 CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H) 44 45 46 # pthreads 34 47 INCLUDE(FindThreads) 35 SET(FD_LIBS ${FD_LIBS} ${CMAKE_THREAD_LIBS_INIT})36 48 37 # We need the clock_gettime function ( -lrt, -lposix4 )49 # clock_gettime 38 50 CHECK_FUNCTION_EXISTS (clock_gettime HAVE_CLOCK_GETTIME) 39 51 IF (HAVE_CLOCK_GETTIME) … … 50 62 ENDIF (HAVE_LIBRT) 51 63 ENDIF (HAVE_CLOCK_GETTIME) 52 SET(FD_LIBS ${FD_LIBS} ${CLOCK_GETTIME_LIBS}) 64 65 # LFD_LIBS = libraries required by the libfreeDiameter. 66 SET(LFD_LIBS ${CLOCK_GETTIME_LIBS} ${CMAKE_THREAD_LIBS_INIT}) 67 68 69 # dlopen and dlclose: CMAKE_DL_LIBS 53 70 54 71 # We need the sctp_connectx function among others … … 59 76 FIND_PACKAGE(SCTP REQUIRED) 60 77 INCLUDE_DIRECTORIES(${SCTP_INCLUDE_DIRS}) 61 SET(FD_LIBS ${FD_LIBS} ${SCTP_LIBRARIES})62 78 ENDIF(NOT HAVE_NATIVE_SCTP) 63 79 # Now check the number of args of this function, since it changed between Ubuntu 9.04 and 9.10 … … 75 91 ENDIF(NOT DISABLE_SCTP) 76 92 77 # Check byte ordering78 TEST_BIG_ENDIAN(HOST_BIG_ENDIAN)79 93 80 # We need the getopt_long function 81 CHECK_FUNCTION_EXISTS (getopt_long HAVE_LONG_OPTIONS) 82 IF (NOT HAVE_LONG_OPTIONS) 83 MESSAGE(SEND_ERROR "The getopt_long function is not found, please add needed library in build system") 84 ENDIF (NOT HAVE_LONG_OPTIONS) 85 86 # Check if ntohll is provided on the system 87 CHECK_SYMBOL_EXISTS(ntohll "" HAVE_NTOHLL) 88 89 # malloc.h ? 90 CHECK_INCLUDE_FILES (malloc.h HAVE_MALLOC_H) 94 # FD_LIBS = libraries required by the daemon 95 SET(FD_LIBS ${CMAKE_DL_LIBS} ${SCTP_LIBRARIES}) 91 96 92 97 ########################## … … 100 105 101 106 # Save some variables for the other directories 102 SET(FD_LIBS ${FD_LIBS} PARENT_SCOPE) 107 SET(FD_LIBS ${FD_LIBS} PARENT_SCOPE) 108 SET(LFD_LIBS ${LFD_LIBS} PARENT_SCOPE) 103 109 104 110 ####
Note: See TracChangeset
for help on using the changeset viewer.