terom@57: # Find libevent terom@57: # Once done, this will define: terom@57: # terom@57: # LibEvent_FOUND terom@57: # LibEvent_INCLUDE_DIRS terom@57: # LibEvent_LIBRARIES terom@57: # terom@57: # Currently, this only supports libevent-svn (i.e. 1.5/2.0), so it's kind of useless for real use :) terom@57: terom@57: include (LibFindMacros) terom@57: terom@57: # include dir terom@57: find_path (LibEvent_INCLUDE_DIR terom@57: NAMES "event2/event.h" terom@57: PATHS "$ENV{LIBEVENT_PREFIX}/include" terom@57: ) terom@57: terom@57: # library terom@57: find_library (LibEvent_LIBRARY terom@57: NAMES "event" terom@57: PATHS "$ENV{LIBEVENT_PREFIX}/lib" terom@57: ) terom@57: terom@57: # set the external vars terom@57: set (LibEvent_PROCESS_INCLUDES LibEvent_INCLUDE_DIR) terom@57: set (LibEvent_PROCESS_LIBS LibEvent_LIBRARY) terom@57: libfind_process (LibEvent)