Remove all xcopy commands in cmake

This commit is contained in:
XinyuHou 2016-12-19 16:07:51 +00:00 committed by Andrew Nelless
parent e0b4561e55
commit 0d8bc9d7e2
5 changed files with 0 additions and 51 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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}\\
)