aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindADNS.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-10-24 17:39:32 +0000
committerJörg Mayer <jmayer@loplof.de>2006-10-24 17:39:32 +0000
commite8a5a41045ea1af89a2111701df3c03093b59373 (patch)
tree215b64b41fa646e48e166994be2401233b870af2 /cmake/modules/FindADNS.cmake
parent493ee85cb01efb108d46bd61cca89487f10a3883 (diff)
Parts of http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1179
Frederic Heem: * More cmake system checks. It compiles dumpcap without running configure, svn path=/trunk/; revision=19672
Diffstat (limited to 'cmake/modules/FindADNS.cmake')
-rw-r--r--cmake/modules/FindADNS.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/cmake/modules/FindADNS.cmake b/cmake/modules/FindADNS.cmake
new file mode 100644
index 0000000000..3a9aabe637
--- /dev/null
+++ b/cmake/modules/FindADNS.cmake
@@ -0,0 +1,34 @@
+# - Find adns
+# Find the gnu adns includes and library
+# http://www.chiark.greenend.org.uk/~ian/adns/
+#
+# ADNS_INCLUDE_DIRS - where to find adns.h, etc.
+# ADNS_LIBRARIES - List of libraries when using adns.
+# ADNS_FOUND - True if adns found.
+
+#Includes
+FIND_PATH(ADNS_INCLUDE_DIR adns.h
+ /usr/local/include
+ /usr/include
+)
+
+SET(ADNS_INCLUDE_DIRS ${ADNS_INCLUDE_DIR})
+
+#Library
+FIND_LIBRARY(ADNS_LIBRARY
+ NAMES adns
+ PATHS /usr/lib /usr/local/lib
+)
+
+SET(ADNS_LIBRARIES ${ADNS_LIBRARY})
+
+#Is adns found ?
+IF(ADNS_INCLUDE_DIR AND ADNS_LIBRARY)
+ SET( ADNS_FOUND "YES" )
+ENDIF(ADNS_INCLUDE_DIR AND ADNS_LIBRARY)
+
+
+MARK_AS_ADVANCED(
+ ADNS_LIBRARY
+ ADNS_INCLUDE_DIR
+)