1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/cmake/FindIBVerbs.cmake

26 lines
752 B
CMake
Raw Permalink Normal View History

# CMakeLists.txt.
#
# @author Steffen Vogel <post@steffenvogel.de>
2022-03-15 09:28:57 -04:00
# @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
2022-07-04 18:20:03 +02:00
# @license Apache 2.0
###################################################################################
find_path(IBVERBS_INCLUDE_DIR
NAMES infiniband/verbs.h
)
find_library(IBVERBS_LIBRARY
NAMES ibverbs
)
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set VILLASNODE_FOUND to TRUE
# if all listed variables are TRUE
2021-06-18 20:19:46 -04:00
find_package_handle_standard_args(IBVerbs DEFAULT_MSG
IBVERBS_LIBRARY IBVERBS_INCLUDE_DIR)
mark_as_advanced(IBVERBS_INCLUDE_DIR IBVERBS_LIBRARY)
set(IBVERBS_LIBRARIES ${IBVERBS_LIBRARY})
set(IBVERBS_INCLUDE_DIRS ${IBVERBS_INCLUDE_DIR})