FindAvahi.cmake 674 B

1234567891011121314151617181920
  1. #
  2. # - Find Avahi
  3. # Find the native AVAHI includes and library
  4. #
  5. # AVAHI_INCLUDE_DIRS - where to find pcre.h, etc.
  6. # AVAHI_LIBRARIES - List of libraries when using pcre.
  7. # AVAHI_FOUND - True if pcre found.
  8. find_library(AVAHI_LIBRARY-COMMON NAMES avahi-common)
  9. find_library(AVAHI_LIBRARY-CLIENT NAMES avahi-client)
  10. find_path(AVAHI_INCLUDE_DIR avahi-client/publish.h)
  11. include(FindPackageHandleStandardArgs)
  12. find_package_handle_standard_args(Avahi DEFAULT_MSG AVAHI_LIBRARY-COMMON AVAHI_LIBRARY-CLIENT AVAHI_INCLUDE_DIR)
  13. if(AVAHI_FOUND)
  14. set(AVAHI_LIBRARIES ${AVAHI_LIBRARY-COMMON} ${AVAHI_LIBRARY-CLIENT})
  15. set(AVAHI_INCLUDE_DIRS ${AVAHI_INCLUDE_DIR})
  16. endif()