diff -r 9dfc861273e5 -r 527d23bf6441 cmake/Modules/FindLibEvent.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cmake/Modules/FindLibEvent.cmake Sun Mar 08 01:16:54 2009 +0200 @@ -0,0 +1,27 @@ +# Find libevent +# Once done, this will define: +# +# LibEvent_FOUND +# LibEvent_INCLUDE_DIRS +# LibEvent_LIBRARIES +# +# Currently, this only supports libevent-svn (i.e. 1.5/2.0), so it's kind of useless for real use :) + +include (LibFindMacros) + +# include dir +find_path (LibEvent_INCLUDE_DIR + NAMES "event2/event.h" + PATHS "$ENV{LIBEVENT_PREFIX}/include" +) + +# library +find_library (LibEvent_LIBRARY + NAMES "event" + PATHS "$ENV{LIBEVENT_PREFIX}/lib" +) + +# set the external vars +set (LibEvent_PROCESS_INCLUDES LibEvent_INCLUDE_DIR) +set (LibEvent_PROCESS_LIBS LibEvent_LIBRARY) +libfind_process (LibEvent)