1 # - Try to find UDNS library
2 # Once done this will define
4 # UDNS_FOUND - system has UDNS
5 # UDNS_INCLUDE_DIRS - the UDNS include directory
6 # UDNS_LIBRARIES - Link these to use UDNS
7 # UDNS_DEFINITIONS - Compiler switches required for using UDNS
9 # Copyright (c) 2016 Maciej Mrozowski <reavertm@gmail.com>
11 # Distributed under the Boost Software License, Version 1.0.
12 # (See accompanying file LICENSE_1_0.txt or copy at
13 # http://www.boost.org/LICENSE_1_0.txt)
16 if (UDN_LIBRARIES AND UDN_INCLUDE_DIRS)
20 set(UDNS_DEFINITIONS "")
22 find_path(UDNS_INCLUDE_DIRS NAMES udns.h)
23 find_library(UDNS_LIBRARIES NAMES udns)
25 if (UDNS_INCLUDE_DIRS AND UDNS_LIBRARIES)
30 if (NOT Udns_FIND_QUIETLY)
31 message(STATUS "Found UDNS: ${UDNS_LIBRARIES}")
34 if (Udns_FIND_REQUIRED)
35 message(FATAL_ERROR "Could not find UDNS")
39 # show the UDNS_INCLUDE_DIRS and UDNS_LIBRARIES variables only in the advanced view
40 mark_as_advanced(UDNS_INCLUDE_DIRS UDNS_LIBRARIES)