Only copy binaries to ROOT/bin on Windows
This commit is contained in:
parent
2a333b7fbf
commit
eb0e5a9ecd
|
@ -60,17 +60,19 @@ add_executable(synergyc ${sources})
|
||||||
target_link_libraries(synergyc
|
target_link_libraries(synergyc
|
||||||
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
|
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
||||||
if (CONF_CPACK)
|
if (WIN32)
|
||||||
install(TARGETS
|
add_custom_command(
|
||||||
synergyc
|
TARGET synergyc
|
||||||
COMPONENT core
|
POST_BUILD
|
||||||
DESTINATION bin)
|
COMMAND xcopy /Y /Q
|
||||||
|
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyc.*
|
||||||
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
||||||
|
)
|
||||||
|
else ()
|
||||||
|
if (CONF_CPACK)
|
||||||
|
install(TARGETS
|
||||||
|
synergyc
|
||||||
|
COMPONENT core
|
||||||
|
DESTINATION bin)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
|
||||||
TARGET synergyc
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND xcopy /Y /Q
|
|
||||||
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyc.*
|
|
||||||
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
|
||||||
)
|
|
||||||
|
|
|
@ -65,17 +65,19 @@ endif()
|
||||||
target_link_libraries(synergyp
|
target_link_libraries(synergyp
|
||||||
arch base client common io mt net ipc platform server synergy client ${libs} ${OPENSSL_LIBS})
|
arch base client common io mt net ipc platform server synergy client ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
||||||
if (CONF_CPACK)
|
if (WIN32)
|
||||||
install(TARGETS
|
add_custom_command(
|
||||||
synergyp
|
TARGET synergyp
|
||||||
COMPONENT core
|
POST_BUILD
|
||||||
DESTINATION bin)
|
COMMAND xcopy /Y /Q
|
||||||
|
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyp.*
|
||||||
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
||||||
|
)
|
||||||
|
else ()
|
||||||
|
if (CONF_CPACK)
|
||||||
|
install(TARGETS
|
||||||
|
synergyp
|
||||||
|
COMPONENT core
|
||||||
|
DESTINATION bin)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
|
||||||
TARGET synergyp
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND xcopy /Y /Q
|
|
||||||
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergyp.*
|
|
||||||
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
|
||||||
)
|
|
||||||
|
|
|
@ -60,17 +60,19 @@ add_executable(synergys ${sources})
|
||||||
target_link_libraries(synergys
|
target_link_libraries(synergys
|
||||||
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
|
arch base client common io mt net ipc platform server synergy ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
||||||
if (CONF_CPACK)
|
if (WIN32)
|
||||||
install(TARGETS
|
add_custom_command(
|
||||||
synergys
|
TARGET synergys
|
||||||
COMPONENT core
|
POST_BUILD
|
||||||
DESTINATION bin)
|
COMMAND xcopy /Y /Q
|
||||||
|
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergys.*
|
||||||
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
||||||
|
)
|
||||||
|
else ()
|
||||||
|
if (CONF_CPACK)
|
||||||
|
install(TARGETS
|
||||||
|
synergys
|
||||||
|
COMPONENT core
|
||||||
|
DESTINATION bin)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
|
||||||
TARGET synergys
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND xcopy /Y /Q
|
|
||||||
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\synergys.*
|
|
||||||
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
|
||||||
)
|
|
||||||
|
|
|
@ -31,17 +31,19 @@ add_executable(syntool ${sources})
|
||||||
target_link_libraries(syntool
|
target_link_libraries(syntool
|
||||||
synergy arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
|
synergy arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
||||||
if (CONF_CPACK)
|
if (WIN32)
|
||||||
install(TARGETS
|
add_custom_command(
|
||||||
syntool
|
TARGET syntool
|
||||||
COMPONENT core
|
POST_BUILD
|
||||||
DESTINATION bin)
|
COMMAND xcopy /Y /Q
|
||||||
|
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\syntool.*
|
||||||
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
||||||
|
)
|
||||||
|
else ()
|
||||||
|
if (CONF_CPACK)
|
||||||
|
install(TARGETS
|
||||||
|
syntool
|
||||||
|
COMPONENT core
|
||||||
|
DESTINATION bin)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
|
||||||
TARGET syntool
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND xcopy /Y /Q
|
|
||||||
..\\..\\..\\..\\..\\synergy\\bin\\${CMAKE_CFG_INTDIR}\\syntool.*
|
|
||||||
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue