Files @ faeb4bd8ef6b
Branch filter:

Location: libtransport.git/cmake_modules/eventConfig.cmake

Daniel Henninger
One more function to go after this. At some future date I'd like to consider if the API provides some better mechanisms, but this'll do for now.
FIND_PATH(EVENT_INCLUDE_DIRS event.h PATH_SUFFIXES libev)

SET(EVENT_NAMES ${EVENT_NAMES} ev libev)
FIND_LIBRARY(EVENT_LIBRARIES NAMES ${EVENT_NAMES} PATH)

IF(EVENT_INCLUDE_DIRS AND EVENT_LIBRARIES)
SET(HAVE_EVENT TRUE)
file(APPEND src/transport_config.h "#define WITH_LIBEVENT 1\n")
ELSE(EVENT_INCLUDE_DIRS AND EVENT_LIBRARIES)
SET (EVENT_INCLUDE_DIRS "")
SET (EVENT_LIBRARIES "")
ENDIF(EVENT_INCLUDE_DIRS AND EVENT_LIBRARIES)

IF(HAVE_EVENT)
MESSAGE(STATUS "Found Event: ${EVENT_LIBRARIES} ${EVENT_INCLUDE_DIRS}")
ENDIF(HAVE_EVENT)