2014-06-23 22:32:32 +00:00
|
|
|
# - Find libxio
|
|
|
|
# Find libxio transport library
|
|
|
|
#
|
2016-05-03 17:19:43 +00:00
|
|
|
# XIO_INCLUDE_DIR - libxio include dir
|
|
|
|
# XIO_LIBRARIES - List of libraries
|
|
|
|
# XIO_FOUND - True if libxio found.
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-08-11 06:48:56 +00:00
|
|
|
if(WITH_XIO AND EXISTS ${WITH_XIO})
|
|
|
|
find_path(XIO_INCLUDE_DIR libxio.h HINTS "${WITH_XIO}/include")
|
|
|
|
find_library(XIO_LIBRARY xio HINTS "${WITH_XIO}/lib")
|
2014-06-23 22:32:32 +00:00
|
|
|
else()
|
2016-08-11 06:48:56 +00:00
|
|
|
find_path(XIO_INCLUDE_DIR libxio.h)
|
|
|
|
find_library(XIO_LIBRARY xio)
|
2014-06-23 22:32:32 +00:00
|
|
|
endif()
|
|
|
|
|
2016-05-03 17:19:43 +00:00
|
|
|
set(XIO_LIBRARIES ${XIO_LIBRARY})
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-08-11 06:48:56 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(xio DEFAULT_MSG XIO_LIBRARY XIO_INCLUDE_DIR)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
|
|
|
mark_as_advanced(
|
2016-05-03 17:19:43 +00:00
|
|
|
XIO_LIBRARY
|
|
|
|
XIO_INCLUDE_DIR
|
2014-06-23 22:32:32 +00:00
|
|
|
)
|