mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
672 B
18 lines
672 B
FIND_PATH(LIBEVENT2_INCLUDE_DIR event2/event.h HINTS /usr/include/event2 )
|
|
FIND_LIBRARY(LIBEVENT2_LIBRARIES NAMES event)
|
|
|
|
IF(LIBEVENT2_INCLUDE_DIR AND LIBEVENT2_LIBRARIES)
|
|
SET(LIBEVENT2_FOUND TRUE)
|
|
ENDIF(LIBEVENT2_INCLUDE_DIR AND LIBEVENT2_LIBRARIES)
|
|
|
|
IF(LIBEVENT2_FOUND)
|
|
IF (NOT Libevent2_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found libevent2 includes: ${LIBEVENT2_INCLUDE_DIR}/event2/event.h")
|
|
MESSAGE(STATUS "Found libevent2 library: ${LIBEVENT2_LIBRARIES}")
|
|
ENDIF (NOT Libevent2_FIND_QUIETLY)
|
|
ELSE(LIBEVENT2_FOUND)
|
|
IF (Libevent2_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could NOT find libevent2 development files")
|
|
ENDIF (Libevent2_FIND_REQUIRED)
|
|
ENDIF(LIBEVENT2_FOUND)
|