2016-12-19 17:41:01 +00:00
|
|
|
cmake_minimum_required (VERSION 3.4)
|
|
|
|
|
2017-01-23 23:49:40 +00:00
|
|
|
find_package (Qt5 COMPONENTS Core Widgets Network)
|
2016-12-19 17:41:01 +00:00
|
|
|
set (CMAKE_AUTOMOC ON)
|
|
|
|
set (CMAKE_AUTORCC ON)
|
|
|
|
set (CMAKE_AUTOUIC ON)
|
|
|
|
set (CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
file (GLOB LEGACY_GUI_SOURCE_FILES src/*.cpp src/*.h)
|
|
|
|
file (GLOB LEGACY_GUI_UI_FILES res/*.ui)
|
|
|
|
|
|
|
|
add_executable (synergyx
|
2016-12-28 11:50:32 +00:00
|
|
|
${LEGACY_GUI_SOURCE_FILES}
|
|
|
|
${LEGACY_GUI_UI_FILES}
|
|
|
|
res/Synergy.qrc
|
2016-12-19 17:41:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories (../lib/shared ./src)
|
|
|
|
|
|
|
|
if (WIN32)
|
2016-12-28 11:50:32 +00:00
|
|
|
include_directories ($ENV{BONJOUR_SDK_HOME}/Include)
|
|
|
|
find_library (DNSSD_LIB dnssd.lib
|
|
|
|
HINTS ENV BONJOUR_SDK_HOME
|
|
|
|
PATH_SUFFIXES "Lib/x64")
|
2016-12-19 17:41:01 +00:00
|
|
|
endif()
|
|
|
|
|
2017-01-22 19:56:26 +00:00
|
|
|
qt5_use_modules (synergyx Core Widgets Network)
|
2017-02-07 22:52:38 +00:00
|
|
|
target_link_libraries (synergyx shared)
|
|
|
|
target_compile_definitions (synergyx PRIVATE -DVERSION_STAGE="${VERSION_STAGE}")
|
|
|
|
target_compile_definitions (synergyx PRIVATE -DVERSION_REVISION="")
|
2017-02-07 01:35:07 +00:00
|
|
|
|
|
|
|
if (WIN32)
|
2017-02-07 22:52:38 +00:00
|
|
|
target_link_libraries (synergyx ${DNSSD_LIB})
|
|
|
|
set_target_properties (synergyx PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
2017-02-07 01:35:07 +00:00
|
|
|
endif()
|