forked from jbagg/QtZeroConf
project: link against avahi-common
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
This commit is contained in:
@ -25,6 +25,7 @@ endif()
|
|||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
find_library(avahi-client-lib avahi-client REQUIRED)
|
find_library(avahi-client-lib avahi-client REQUIRED)
|
||||||
|
find_library(avahi-common-lib avahi-common REQUIRED)
|
||||||
find_path(avahi-client-includes avahi-client/client.h REQUIRED)
|
find_path(avahi-client-includes avahi-client/client.h REQUIRED)
|
||||||
target_sources(QtZeroConf PRIVATE
|
target_sources(QtZeroConf PRIVATE
|
||||||
avahi-qt/qt-watch_p.h
|
avahi-qt/qt-watch_p.h
|
||||||
@ -35,7 +36,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
|||||||
list(APPEND ${PUBLIC_HEADERS}
|
list(APPEND ${PUBLIC_HEADERS}
|
||||||
avahi-qt/qt-watch.h
|
avahi-qt/qt-watch.h
|
||||||
)
|
)
|
||||||
target_link_libraries(QtZeroConf PRIVATE ${avahi-client-lib})
|
target_link_libraries(QtZeroConf PRIVATE ${avahi-client-lib} ${avahi-common-lib})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
Reference in New Issue
Block a user