diff options
author | Jörg Mayer <jmayer@loplof.de> | 2006-09-06 22:28:19 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2006-09-06 22:28:19 +0000 |
commit | d6417e08422edab8aca35879e0fed4af48b09824 (patch) | |
tree | a9be8b336a59ee03c35e593c135384e82745c77b /cmake/modules/FindPCAP.cmake | |
parent | f1956abf019fee7395e0006feddc6d46a2aa2375 (diff) | |
download | wireshark-d6417e08422edab8aca35879e0fed4af48b09824.tar.gz wireshark-d6417e08422edab8aca35879e0fed4af48b09824.tar.bz2 wireshark-d6417e08422edab8aca35879e0fed4af48b09824.zip |
cmake/
Add some more (hackish) tests.
Add a LICENSE file until I find the time to add it to all
files individually.
CMakeLists.txt
Add some addiotional stuff regarding options.
Add (non-working) code to generate config.h
Handle GTK1 vs GTK2 and GLIB1 vs GLIB2
svn path=/trunk/; revision=19168
Diffstat (limited to 'cmake/modules/FindPCAP.cmake')
-rw-r--r-- | cmake/modules/FindPCAP.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cmake/modules/FindPCAP.cmake b/cmake/modules/FindPCAP.cmake new file mode 100644 index 0000000000..8eb537d9c7 --- /dev/null +++ b/cmake/modules/FindPCAP.cmake @@ -0,0 +1,27 @@ +# - Find pcap +# Find the PCAP includes and library +# +# PCAP_INCLUDE_DIR - where to find pcap.h, etc. +# PCAP_LIBRARIES - List of libraries when using pcap. +# PCAP_FOUND - True if pcap found. + +FIND_PATH(PCAP_INCLUDE_DIR pcap.h + /usr/local/include + /usr/include +) + +FIND_LIBRARY(PCAP_LIBRARIES + NAMES pcap + PATHS /usr/lib /usr/local/lib +) + +IF(PCAP_INCLUDE_DIR) + IF(PCAP_LIBRARIES) + SET( PCAP_FOUND "YES" ) + ENDIF(PCAP_LIBRARIES) +ENDIF(PCAP_INCLUDE_DIR) + +MARK_AS_ADVANCED( + PCAP_LIBRARIES + PCAP_INCLUDE_DIR +) |