equal
deleted
inserted
replaced
|
1 # Find libevent |
|
2 # Once done, this will define: |
|
3 # |
|
4 # LibEvent_FOUND |
|
5 # LibEvent_INCLUDE_DIRS |
|
6 # LibEvent_LIBRARIES |
|
7 # |
|
8 # Currently, this only supports libevent-svn (i.e. 1.5/2.0), so it's kind of useless for real use :) |
|
9 |
|
10 include (LibFindMacros) |
|
11 |
|
12 # include dir |
|
13 find_path (LibEvent_INCLUDE_DIR |
|
14 NAMES "event2/event.h" |
|
15 PATHS "$ENV{LIBEVENT_PREFIX}/include" |
|
16 ) |
|
17 |
|
18 # library |
|
19 find_library (LibEvent_LIBRARY |
|
20 NAMES "event" |
|
21 PATHS "$ENV{LIBEVENT_PREFIX}/lib" |
|
22 ) |
|
23 |
|
24 # set the external vars |
|
25 set (LibEvent_PROCESS_INCLUDES LibEvent_INCLUDE_DIR) |
|
26 set (LibEvent_PROCESS_LIBS LibEvent_LIBRARY) |
|
27 libfind_process (LibEvent) |