Link legacy GUI to Avahi on Linux

This commit is contained in:
Andrew Nelless 2017-03-08 18:20:18 +00:00
parent 7f0f3123c5
commit bb73b1722a
1 changed files with 3 additions and 1 deletions

View File

@ -21,16 +21,18 @@ add_executable (synergy WIN32
)
include_directories (../lib/shared ./src)
target_link_libraries (synergy shared)
if (WIN32)
include_directories ($ENV{BONJOUR_SDK_HOME}/Include)
find_library (DNSSD_LIB dnssd.lib
HINTS ENV BONJOUR_SDK_HOME
PATH_SUFFIXES "Lib/x64")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries (synergy dns_sd)
endif()
qt5_use_modules (synergy Core Widgets Network)
target_link_libraries (synergy shared)
target_compile_definitions (synergy PRIVATE -DVERSION_STAGE="${VERSION_STAGE}")
target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="${SYNERGY_GIT_COMMIT}")