Only copy binaries to ROOT/bin on Windows

This commit is contained in:
Jerry (Xinyu Hou) 2016-11-18 15:13:42 +00:00 committed by Andrew Nelless
parent 2a333b7fbf
commit eb0e5a9ecd
4 changed files with 60 additions and 52 deletions

View File

@ -60,13 +60,7 @@ add_executable(synergyc ${sources})
target_link_libraries(synergyc
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
if (CONF_CPACK)
install(TARGETS
synergyc
COMPONENT core
DESTINATION bin)
endif()
if (WIN32)
add_custom_command(
TARGET synergyc
POST_BUILD
@ -74,3 +68,11 @@ add_custom_command(
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyc.*
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
else ()
if (CONF_CPACK)
install(TARGETS
synergyc
COMPONENT core
DESTINATION bin)
endif()
endif()

View File

@ -65,13 +65,7 @@ endif()
target_link_libraries(synergyp
arch base client common io mt net ipc platform server synergy client ${libs} ${OPENSSL_LIBS})
if (CONF_CPACK)
install(TARGETS
synergyp
COMPONENT core
DESTINATION bin)
endif()
if (WIN32)
add_custom_command(
TARGET synergyp
POST_BUILD
@ -79,3 +73,11 @@ add_custom_command(
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyp.*
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
else ()
if (CONF_CPACK)
install(TARGETS
synergyp
COMPONENT core
DESTINATION bin)
endif()
endif()

View File

@ -60,13 +60,7 @@ add_executable(synergys ${sources})
target_link_libraries(synergys
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
if (CONF_CPACK)
install(TARGETS
synergys
COMPONENT core
DESTINATION bin)
endif()
if (WIN32)
add_custom_command(
TARGET synergys
POST_BUILD
@ -74,3 +68,11 @@ add_custom_command(
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergys.*
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
else ()
if (CONF_CPACK)
install(TARGETS
synergys
COMPONENT core
DESTINATION bin)
endif()
endif()

View File

@ -31,13 +31,7 @@ add_executable(syntool ${sources})
target_link_libraries(syntool
synergy arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
if (CONF_CPACK)
install(TARGETS
syntool
COMPONENT core
DESTINATION bin)
endif()
if (WIN32)
add_custom_command(
TARGET syntool
POST_BUILD
@ -45,3 +39,11 @@ add_custom_command(
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\syntool.*
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
)
else ()
if (CONF_CPACK)
install(TARGETS
syntool
COMPONENT core
DESTINATION bin)
endif()
endif()