]>
Commit | Line | Data |
---|---|---|
eafe8130 TL |
1 | # - Find libnl-genl3 |
2 | # Find the genl library and includes | |
3 | # | |
4 | # GENL_INCLUDE_DIR - where to find netlink.h, etc. | |
5 | # GENL_LIBRARIES - List of libraries when using genl. | |
6 | # GENL_FOUND - True if genl found. | |
7 | ||
8 | find_path(GENL_INCLUDE_DIR NAMES netlink/netlink.h PATH_SUFFIXES libnl3) | |
9 | ||
10 | find_library(LIBNL_LIB nl-3) | |
11 | find_library(LIBNL_GENL_LIB nl-genl-3) | |
12 | set(GENL_LIBRARIES | |
13 | ${LIBNL_LIB} | |
14 | ${LIBNL_GENL_LIB} | |
15 | ) | |
16 | ||
17 | include(FindPackageHandleStandardArgs) | |
18 | find_package_handle_standard_args(nl-genl-3 | |
19 | DEFAULT_MSG GENL_LIBRARIES GENL_INCLUDE_DIR) | |
20 | ||
21 | mark_as_advanced( | |
22 | GENL_LIBRARIES | |
23 | GENL_INCLUDE_DIR) |