2019-03-04 21:18:15 +00:00
|
|
|
# Finding LibEvent (https://libevent.org/)
|
|
|
|
# Defining:
|
|
|
|
# LIBEVENT_LIB
|
|
|
|
# LIBEVENT_INCLUDE_DIR
|
|
|
|
|
2019-05-17 08:19:35 +00:00
|
|
|
FIND_PATH(LIBEVENT_INCLUDE_DIR event2/event.h PATH_SUFFIXES include HINTS ${ADDITIONAL_LIBRARY_PATHS})
|
2019-03-04 21:18:15 +00:00
|
|
|
|
2019-05-17 08:19:35 +00:00
|
|
|
FIND_LIBRARY(LIBEVENT_LIB NAMES event_core PATH_SUFFIXES lib HINTS ${ADDITIONAL_LIBRARY_PATHS})
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2020-06-15 20:03:08 +00:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibEvent DEFAULT_MSG
|
2019-05-17 08:19:35 +00:00
|
|
|
LIBEVENT_INCLUDE_DIR LIBEVENT_LIB)
|