blob: 3a9aabe63762fd412cd55e7af5eee102c1781405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
)
|