~ubuntu-branches/ubuntu/trusty/picviz/trusty

« back to all changes in this revision

Viewing changes to cmake/FindEvent.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2009-03-30 10:42:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090330104208-j095obwkp574t1lm
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Find Libevent
 
2
# http://monkey.org/~provos/libevent/
 
3
#
 
4
# Once done, this will define:
 
5
#
 
6
#  Event_FOUND - system has Event
 
7
#  Event_INCLUDE_DIRS - the Event include directories
 
8
#  Event_LIBRARIES - link these to use Event
 
9
#
 
10
 
 
11
if (EVENT_INCLUDE_DIR AND EVENT_LIBRARY)
 
12
  # Already in cache, be silent
 
13
  set(EVENT_FIND_QUIETLY TRUE)
 
14
endif (EVENT_INCLUDE_DIR AND EVENT_LIBRARY)
 
15
 
 
16
find_path(EVENT_INCLUDE_DIR event.h PATHS ${_EVENTIncDir} PATH_SUFFIXES event)
 
17
 
 
18
find_library(EVENT_LIBRARY NAMES event PATHS ${_EVENTLinkDir})
 
19
 
 
20
include(FindPackageHandleStandardArgs)
 
21
find_package_handle_standard_args(EVENT DEFAULT_MSG EVENT_INCLUDE_DIR EVENT_EVENT_LIBRARY)
 
22
 
 
23
mark_as_advanced(EVENT_INCLUDE_DIR EVENT_LIBRARY)
 
24