diff options
Diffstat (limited to 'modules/FindAvahi.cmake')
-rw-r--r-- | modules/FindAvahi.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
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, <qbast@go2.pl> +# +# 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) + |