1
0
Fork 0
flightgear/CMakeModules/FindLibEvent.cmake

12 lines
424 B
CMake
Raw Normal View History

2019-03-04 21:18:15 +00:00
# Finding LibEvent (https://libevent.org/)
# Defining:
# LIBEVENT_LIB
# LIBEVENT_INCLUDE_DIR
2019-05-17 08:19:35 +00:00
FIND_PATH(LIBEVENT_INCLUDE_DIR event2/event.h PATH_SUFFIXES include HINTS ${ADDITIONAL_LIBRARY_PATHS})
2019-03-04 21:18:15 +00:00
2019-05-17 08:19:35 +00:00
FIND_LIBRARY(LIBEVENT_LIB NAMES event_core PATH_SUFFIXES lib HINTS ${ADDITIONAL_LIBRARY_PATHS})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibEvent DEFAULT_MSG
2019-05-17 08:19:35 +00:00
LIBEVENT_INCLUDE_DIR LIBEVENT_LIB)