File: FindEvent.cmake

package info (click to toggle)
picviz 0.5-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,128 kB
  • ctags: 604
  • sloc: ansic: 3,728; perl: 851; yacc: 695; lex: 339; python: 294; sh: 234; makefile: 153
file content (24 lines) | stat: -rw-r--r-- 700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Find Libevent
# http://monkey.org/~provos/libevent/
#
# Once done, this will define:
#
#  Event_FOUND - system has Event
#  Event_INCLUDE_DIRS - the Event include directories
#  Event_LIBRARIES - link these to use Event
#

if (EVENT_INCLUDE_DIR AND EVENT_LIBRARY)
  # Already in cache, be silent
  set(EVENT_FIND_QUIETLY TRUE)
endif (EVENT_INCLUDE_DIR AND EVENT_LIBRARY)

find_path(EVENT_INCLUDE_DIR event.h PATHS ${_EVENTIncDir} PATH_SUFFIXES event)

find_library(EVENT_LIBRARY NAMES event PATHS ${_EVENTLinkDir})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EVENT DEFAULT_MSG EVENT_INCLUDE_DIR EVENT_EVENT_LIBRARY)

mark_as_advanced(EVENT_INCLUDE_DIR EVENT_LIBRARY)