File: FindLibevent.cmake

package info (click to toggle)
simgrid 3.25%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,308 kB
  • sloc: cpp: 100,922; ansic: 68,086; fortran: 6,061; xml: 5,176; f90: 5,123; java: 4,094; python: 2,623; perl: 1,843; sh: 1,241; makefile: 47; javascript: 7; sed: 6
file content (12 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
find_path(LIBEVENT_INCLUDE_DIR event2/event.h)
find_library(LIBEVENT_LIBRARY NAMES event)
find_library(LIBEVENT_THREADS_LIBRARY NAMES event_pthreads)
set(LIBEVENT_LIBRARIES "${LIBEVENT_LIBRARY}")

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
    Libevent
    DEFAULT_MSG
    LIBEVENT_LIBRARIES
    LIBEVENT_INCLUDE_DIR)
mark_as_advanced(LIBEVENT_INCLUDE_DIR LIBEVENT_LIBRARIES)