diff options
Diffstat (limited to 'cmake/modules/Findgenl.cmake')
-rw-r--r-- | cmake/modules/Findgenl.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cmake/modules/Findgenl.cmake b/cmake/modules/Findgenl.cmake new file mode 100644 index 00000000..07c5f357 --- /dev/null +++ b/cmake/modules/Findgenl.cmake @@ -0,0 +1,23 @@ +# - Find libnl-genl3 +# Find the genl library and includes +# +# GENL_INCLUDE_DIR - where to find netlink.h, etc. +# GENL_LIBRARIES - List of libraries when using genl. +# GENL_FOUND - True if genl found. + +find_path(GENL_INCLUDE_DIR NAMES netlink/netlink.h PATH_SUFFIXES libnl3) + +find_library(LIBNL_LIB nl-3) +find_library(LIBNL_GENL_LIB nl-genl-3) +set(GENL_LIBRARIES + ${LIBNL_LIB} + ${LIBNL_GENL_LIB} + ) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(nl-genl-3 + DEFAULT_MSG GENL_LIBRARIES GENL_INCLUDE_DIR) + +mark_as_advanced( + GENL_LIBRARIES + GENL_INCLUDE_DIR) |