From 2c7ef17dafd48c652a1bf81b6e2cc671db8cfe8d Mon Sep 17 00:00:00 2001 From: Jakub Stachowski Date: Sat, 14 Apr 2007 18:40:13 +0000 Subject: Add check for Avahi. If found, use avahi backend, else search for libdns_sd. config-dnssd.h is not needed anymore. Include defs.h instead of copying defines. svn path=/trunk/KDE/kdelibs/; revision=653972 --- modules/FindAvahi.cmake | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/FindAvahi.cmake diff --git a/modules/FindAvahi.cmake b/modules/FindAvahi.cmake new file mode 100644 index 00000000..89043f44 --- /dev/null +++ b/modules/FindAvahi.cmake @@ -0,0 +1,22 @@ +# Find Avahi. Only avahi-common/defs.h is really needed +# +# Copyright (c) 2007, Jakub Stachowski, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +FIND_PATH(AVAHI_INCLUDE_DIR avahi-common/defs.h + /usr/include + /usr/local/include + ) + +if(AVAHI_INCLUDE_DIR) + set(AVAHI_FOUND TRUE) + MESSAGE( STATUS "Avahi common includes found in ${AVAHI_INCLUDE_DIR}") +else(AVAHI_INCLUDE_DIR) + MESSAGE( STATUS "Avahi not found") +endif(AVAHI_INCLUDE_DIR) + +MARK_AS_ADVANCED(AVAHI_INCLUDE_DIR) + -- cgit v1.2.1