xref: /freebsd/contrib/libpcap/cmake/Modules/FindSNF.cmake (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1#
2# Try to find the Myricom SNF library.
3#
4
5# Try to find the header
6find_path(SNF_INCLUDE_DIR snf.h /opt/snf)
7
8# Try to find the library
9find_library(SNF_LIBRARY snf /opt/snf)
10
11#
12# Get link information from the _LIBRARY paths.
13#
14get_link_info_from_library_path(SNF snf)
15
16include(FindPackageHandleStandardArgs)
17find_package_handle_standard_args(SNF
18  DEFAULT_MSG
19  SNF_INCLUDE_DIR
20  SNF_LIBRARY
21)
22
23mark_as_advanced(
24  SNF_INCLUDE_DIR
25  SNF_LIBRARY
26)
27
28set(SNF_INCLUDE_DIRS ${SNF_INCLUDE_DIR})
29set(SNF_LIBRARIES ${SNF_LIBRARY})
30set(SNF_STATIC_LIBRARIES ${SNF_LIBRARY})
31