diff --git a/src/cmd/synergyc/CMakeLists.txt b/src/cmd/synergyc/CMakeLists.txt index bc169976..e620e459 100644 --- a/src/cmd/synergyc/CMakeLists.txt +++ b/src/cmd/synergyc/CMakeLists.txt @@ -61,13 +61,6 @@ target_link_libraries(synergyc arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS}) if (WIN32) - add_custom_command( - TARGET synergyc - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyc.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\ - ) else () if (CONF_CPACK) install(TARGETS diff --git a/src/cmd/synergys/CMakeLists.txt b/src/cmd/synergys/CMakeLists.txt index 2349701b..552f3cd6 100644 --- a/src/cmd/synergys/CMakeLists.txt +++ b/src/cmd/synergys/CMakeLists.txt @@ -61,13 +61,6 @@ target_link_libraries(synergys arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS}) if (WIN32) - add_custom_command( - TARGET synergys - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergys.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\ - ) else () if (CONF_CPACK) install(TARGETS diff --git a/src/cmd/syntool/CMakeLists.txt b/src/cmd/syntool/CMakeLists.txt index 6f61f1d0..e79ea4a9 100644 --- a/src/cmd/syntool/CMakeLists.txt +++ b/src/cmd/syntool/CMakeLists.txt @@ -32,13 +32,6 @@ target_link_libraries(syntool synergy arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS}) if (WIN32) - add_custom_command( - TARGET syntool - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\syntool.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR} - ) else () if (CONF_CPACK) install(TARGETS diff --git a/src/lib/net/CMakeLists.txt b/src/lib/net/CMakeLists.txt index e34fd40c..62ebe5c4 100644 --- a/src/lib/net/CMakeLists.txt +++ b/src/lib/net/CMakeLists.txt @@ -34,23 +34,6 @@ endif() add_library(net STATIC ${sources}) -if (WIN32) - add_custom_command( - TARGET net - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\ext\\${OPENSSL_PLAT_DIR}\\out32dll\\libeay32.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\ - ) - add_custom_command( - TARGET net - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\ext\\${OPENSSL_PLAT_DIR}\\out32dll\\ssleay32.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\ - ) -endif() - if (UNIX) target_link_libraries(net mt io ${OPENSSL_LIBS}) endif() diff --git a/src/lib/synwinhk/CMakeLists.txt b/src/lib/synwinhk/CMakeLists.txt index a0884e83..2a93c936 100644 --- a/src/lib/synwinhk/CMakeLists.txt +++ b/src/lib/synwinhk/CMakeLists.txt @@ -29,16 +29,3 @@ add_library(synwinhk SHARED ${sources}) if (NOT MSVC_VERSION VERSION_LESS 1900) target_link_libraries(synwinhk libucrt) endif() - -# copy the dlls (and supporting files) from the lib dir to -# the bin dir, so that synergyc and synergys can easily find them. -# we should leave the other libraries compiling to the lib dir, -# so that the bin dir remains tidy. the path is relative to the -# build dir (in this case, that's: build\src\lib\platform). -add_custom_command( - TARGET synwinhk - POST_BUILD - COMMAND xcopy /Y /Q - ..\\..\\..\\..\\..\\synergy\\lib\\${CMAKE_CFG_INTDIR}\\synwinhk.* - ..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\ -)