From e674c0e63baee23e73ba2ff33185ca3bcd5eae12 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 18 Sep 2017 09:41:13 +0100 Subject: [PATCH] Revert "Revert "#6151 Install synergy core to dictory for packaging"" This reverts commit 77d82b4f4b96edc3f6f6dd162db5484ca1343365. --- 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()