File: FindSNF.cmake

package info (click to toggle)
libpcap 1.10.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,892 kB
  • sloc: ansic: 47,969; sh: 3,761; makefile: 1,078; lex: 690; python: 254; asm: 227
file content (30 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Try to find the Myricom SNF library.
#

# Try to find the header
find_path(SNF_INCLUDE_DIR snf.h /opt/snf)

# Try to find the library
find_library(SNF_LIBRARY snf /opt/snf)

#
# Get link information from the _LIBRARY paths.
#
get_link_info_from_library_path(SNF snf)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SNF
  DEFAULT_MSG
  SNF_INCLUDE_DIR
  SNF_LIBRARY
)

mark_as_advanced(
  SNF_INCLUDE_DIR
  SNF_LIBRARY
)

set(SNF_INCLUDE_DIRS ${SNF_INCLUDE_DIR})
set(SNF_LIBRARIES ${SNF_LIBRARY})
set(SNF_STATIC_LIBRARIES ${SNF_LIBRARY})