]> The Tcpdump Group git mirrors - libpcap/blob - cmake/Modules/FindSNF.cmake
CI: Call print_so_deps() on rpcapd in remote enabled build
[libpcap] / cmake / Modules / FindSNF.cmake
1 #
2 # Try to find the Myricom SNF library.
3 #
4
5 # Try to find the header
6 find_path(SNF_INCLUDE_DIR snf.h /opt/snf)
7
8 # Try to find the library
9 find_library(SNF_LIBRARY snf /opt/snf)
10
11 #
12 # Get link information from the _LIBRARY paths.
13 #
14 get_link_info_from_library_path(SNF snf)
15
16 include(FindPackageHandleStandardArgs)
17 find_package_handle_standard_args(SNF
18 DEFAULT_MSG
19 SNF_INCLUDE_DIR
20 SNF_LIBRARY
21 )
22
23 mark_as_advanced(
24 SNF_INCLUDE_DIR
25 SNF_LIBRARY
26 )
27
28 set(SNF_INCLUDE_DIRS ${SNF_INCLUDE_DIR})
29 set(SNF_LIBRARIES ${SNF_LIBRARY})
30 set(SNF_STATIC_LIBRARIES ${SNF_LIBRARY})