From 841bd079c9b32dcb89822d241035899b33a6132e Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Thu, 14 Sep 2017 18:04:11 +0100 Subject: [PATCH] #6151 Install synergy core to dictory for packaging --- src/cmd/core/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd/core/CMakeLists.txt b/src/cmd/core/CMakeLists.txt index d91ca513..781af518 100644 --- a/src/cmd/core/CMakeLists.txt +++ b/src/cmd/core/CMakeLists.txt @@ -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()