xref: /freebsd/contrib/tcpdump/cmake/Modules/FindSMI.cmake (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#
2# Try to find libsmi.
3#
4
5# Try to find the header
6find_path(SMI_INCLUDE_DIR smi.h)
7
8# Try to find the library
9find_library(SMI_LIBRARY smi)
10
11include(FindPackageHandleStandardArgs)
12find_package_handle_standard_args(SMI
13  DEFAULT_MSG
14  SMI_INCLUDE_DIR
15  SMI_LIBRARY
16)
17
18mark_as_advanced(
19  SMI_INCLUDE_DIR
20  SMI_LIBRARY
21)
22
23set(SMI_INCLUDE_DIRS ${SMI_INCLUDE_DIR})
24set(SMI_LIBRARIES ${SMI_LIBRARY})
25