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