Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 0.99 kb
# - Find LibEvent (a cross platform RPC lib/tool)
# This module defines
# LibEvent_INCLUDE_DIR, where to find LibEvent headers
# LibEvent_LIBS, LibEvent libraries
# LibEvent_FOUND, If false, do not try to use ant
find_path(LibEvent_INCLUDE_DIR event.h PATHS
/usr/local/include
/opt/local/include
)
set(LibEvent_LIB_PATHS /usr/local/lib /opt/local/lib)
find_library(LibEvent_LIB NAMES event PATHS ${LibEvent_LIB_PATHS})
if (LibEvent_LIB AND LibEvent_INCLUDE_DIR)
set(LibEvent_FOUND TRUE)
set(LibEvent_LIB ${LibEvent_LIB})
else ()
set(LibEvent_FOUND FALSE)
endif ()
if (LibEvent_FOUND)
if (NOT LibEvent_FIND_QUIETLY)
message(STATUS "Found libevent: ${LibEvent_LIB}")
endif ()
else (LibEvent_FOUND)
if (LibEvent_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find libevent library.")
endif (LibEvent_FIND_REQUIRED)
message(STATUS "libevent NOT found.")
endif (LibEvent_FOUND)
mark_as_advanced(
LibEvent_LIB
LibEvent_INCLUDE_DIR
)
Jump to Line
Something went wrong with that request. Please try again.