blob: 3707b7cd5e2248d2de3fe01434adc0175993f103 (
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
35
36
|
# 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.
if (AVAHI_INCLUDE_DIR)
# Already in cache, be silent
set(Avahi_FIND_QUIETLY TRUE)
endif (AVAHI_INCLUDE_DIR)
FIND_PATH(AVAHI_INCLUDE_DIR avahi-common/defs.h
/usr/include
/usr/local/include
)
if(AVAHI_INCLUDE_DIR)
set(AVAHI_FOUND TRUE)
endif(AVAHI_INCLUDE_DIR)
if(AVAHI_FOUND)
if(NOT Avahi_FIND_QUIETLY)
MESSAGE( STATUS "Avahi common includes found in ${AVAHI_INCLUDE_DIR}")
endif(NOT Avahi_FIND_QUIETLY)
else(AVAHI_FOUND)
if(Avahi_FIND_REQUIRED)
MESSAGE( FATAL_ERROR "Avahi not found")
endif(Avahi_FIND_REQUIRED)
endif(AVAHI_FOUND)
MARK_AS_ADVANCED(AVAHI_INCLUDE_DIR)
|