#6151 Install synergy core to dictory for packaging

This commit is contained in:
Jerry (Xinyu Hou) 2017-09-14 18:04:11 +01:00
parent d2f5ba6599
commit 841bd079c9
1 changed files with 6 additions and 0 deletions

View File

@ -16,3 +16,9 @@
add_executable(synergy-core main.cpp)
target_link_libraries(synergy-core
arch base client common io mt net ipc platform server core ${libs} ${OPENSSL_LIBS})
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
install (TARGETS synergy-core DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
install (TARGETS synergy-core DESTINATION bin)
endif()