File: FindSMI.cmake

package info (click to toggle)
tcpdump 4.99.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,640 kB
  • sloc: ansic: 84,205; sh: 3,801; makefile: 505; perl: 327; awk: 123
file content (24 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# Try to find libsmi.
#

# Try to find the header
find_path(SMI_INCLUDE_DIR smi.h)

# Try to find the library
find_library(SMI_LIBRARY smi)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SMI
  DEFAULT_MSG
  SMI_INCLUDE_DIR
  SMI_LIBRARY
)

mark_as_advanced(
  SMI_INCLUDE_DIR
  SMI_LIBRARY
)

set(SMI_INCLUDE_DIRS ${SMI_INCLUDE_DIR})
set(SMI_LIBRARIES ${SMI_LIBRARY})