# - Try to find the LibEvent config processing library
# Once done this will define
#
# LIBEVENT_FOUND - System has LibEvent
# LIBEVENT_INCLUDE_DIR - the LibEvent include directory
# LIBEVENT_LIBRARIES - The libraries needed to use LibEvent
find_path     (LIBEVENT_INCLUDE_DIR NAMES event.h PATHS /home/yh/Documents/GIT/libevent/build/_install/include NO_DEFAULT_PATH)
find_library  (LIBEVENT_LIBRARY     NAMES event PATHS /home/yh/Documents/GIT/libevent/build/_install/lib NO_DEFAULT_PATH)
find_library  (LIBEVENT_CORE        NAMES event_core PATHS /home/yh/Documents/GIT/libevent/build/_install/lib NO_DEFAULT_PATH)
find_library  (LIBEVENT_EXTRA       NAMES event_extra PATHS /home/yh/Documents/GIT/libevent/build/_install/lib NO_DEFAULT_PATH)
if (NOT EVHTP_DISABLE_EVTHR)
    find_library (LIBEVENT_THREAD   NAMES event_pthreads PATHS /home/yh/Documents/GIT/libevent/build/_install/lib NO_DEFAULT_PATH)
endif()
if (NOT EVHTP_DISABLE_SSL)
    find_library (LIBEVENT_SSL      NAMES event_openssl PATHS /home/yh/Documents/GIT/libevent/build/_install/lib NO_DEFAULT_PATH)
endif()
include (FindPackageHandleStandardArgs)
set (LIBEVENT_INCLUDE_DIRS ${LIBEVENT_INCLUDE_DIR})
set (LIBEVENT_LIBRARIES
        ${LIBEVENT_LIBRARY}
        ${LIBEVENT_SSL}
        ${LIBEVENT_CORE}
        ${LIBEVENT_EXTRA}
        ${LIBEVENT_THREAD}
        ${LIBEVENT_EXTRA})
    find_package_handle_standard_args (LIBEVENT DEFAULT_MSG LIBEVENT_LIBRARIES LIBEVENT_INCLUDE_DIR)
mark_as_advanced(LIBEVENT_INCLUDE_DIRS LIBEVENT_LIBRARIES)
