diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:13:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:13:01 +0000 |
commit | 7adcb5b605cc1328a3084c334f4697ec9771936c (patch) | |
tree | 03e681bfda053978ba896745828e09cb056ad156 /cmake/Modules/FindSMI.cmake | |
parent | Initial commit. (diff) | |
download | tcpdump-upstream/4.99.4.tar.xz tcpdump-upstream/4.99.4.zip |
Adding upstream version 4.99.4.upstream/4.99.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | cmake/Modules/FindSMI.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cmake/Modules/FindSMI.cmake b/cmake/Modules/FindSMI.cmake new file mode 100644 index 0000000..98c1071 --- /dev/null +++ b/cmake/Modules/FindSMI.cmake @@ -0,0 +1,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}) |