mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
21 lines
674 B
CMake
21 lines
674 B
CMake
|
#
|
||
|
# - Find Avahi
|
||
|
# Find the native AVAHI includes and library
|
||
|
#
|
||
|
# AVAHI_INCLUDE_DIRS - where to find pcre.h, etc.
|
||
|
# AVAHI_LIBRARIES - List of libraries when using pcre.
|
||
|
# AVAHI_FOUND - True if pcre found.
|
||
|
|
||
|
find_library(AVAHI_LIBRARY-COMMON NAMES avahi-common)
|
||
|
find_library(AVAHI_LIBRARY-CLIENT NAMES avahi-client)
|
||
|
|
||
|
find_path(AVAHI_INCLUDE_DIR avahi-client/publish.h)
|
||
|
include(FindPackageHandleStandardArgs)
|
||
|
|
||
|
find_package_handle_standard_args(Avahi DEFAULT_MSG AVAHI_LIBRARY-COMMON AVAHI_LIBRARY-CLIENT AVAHI_INCLUDE_DIR)
|
||
|
|
||
|
if(AVAHI_FOUND)
|
||
|
set(AVAHI_LIBRARIES ${AVAHI_LIBRARY-COMMON} ${AVAHI_LIBRARY-CLIENT})
|
||
|
set(AVAHI_INCLUDE_DIRS ${AVAHI_INCLUDE_DIR})
|
||
|
endif()
|