2014-06-23 22:32:32 +00:00
|
|
|
# - Find AIO
|
|
|
|
#
|
2016-07-22 04:51:04 +00:00
|
|
|
# AIO_INCLUDE - Where to find libaio.h
|
2014-06-23 22:32:32 +00:00
|
|
|
# AIO_LIBS - List of libraries when using AIO.
|
|
|
|
# AIO_FOUND - True if AIO found.
|
|
|
|
|
2016-07-22 04:51:04 +00:00
|
|
|
find_path(AIO_INCLUDE_DIR
|
|
|
|
libaio.h
|
|
|
|
HINTS $ENV{AIO_ROOT}/include)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-07-22 04:51:04 +00:00
|
|
|
find_library(AIO_LIBRARIES
|
|
|
|
aio
|
|
|
|
HINTS $ENV{AIO_ROOT}/lib)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2015-09-21 15:59:30 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2016-07-22 04:51:04 +00:00
|
|
|
find_package_handle_standard_args(aio DEFAULT_MSG AIO_LIBRARIES AIO_INCLUDE_DIR)
|
|
|
|
|
|
|
|
mark_as_advanced(AIO_INCLUDE_DIR AIO_LIBRARIES)
|