1 find_library(AVAHI_LIBRARY-COMMON NAMES avahi-common)
2 find_library(AVAHI_LIBRARY-CLIENT NAMES avahi-client)
3 find_path(AVAHI_INCLUDE_DIR avahi-client/publish.h)
5 include(FindPackageHandleStandardArgs)
6 find_package_handle_standard_args(Avahi DEFAULT_MSG AVAHI_LIBRARY-COMMON AVAHI_LIBRARY-CLIENT AVAHI_INCLUDE_DIR)
9 set(AVAHI_LIBRARIES ${AVAHI_LIBRARY-COMMON} ${AVAHI_LIBRARY-CLIENT})
10 set(AVAHI_INCLUDE_DIRS ${AVAHI_INCLUDE_DIR})