|
|
@ -92,11 +92,11 @@ macro(eth_install_executable EXECUTABLE) |
|
|
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") |
|
|
|
|
|
|
|
# copy all dlls to executable directory |
|
|
|
file (GLOB DLLS ${CMAKE_DEPENDENCY_INSTALL_DIR}/bin/*.dll) |
|
|
|
file (GLOB DLLS ${ETH_DEPENDENCY_INSTALL_DIR}/bin/*.dll) |
|
|
|
|
|
|
|
foreach(DLL ${DLLS}) |
|
|
|
add_custom_command(TARGET ${EXECUTABLE} POST_BUILD |
|
|
|
COMMAND cmake -E copy ${DLL} $<TARGET_FILE_DIR:${EXECUTABLE}> |
|
|
|
COMMAND cmake -E copy "${DLL}" "$<TARGET_FILE_DIR:${EXECUTABLE}>" |
|
|
|
) |
|
|
|
endforeach() |
|
|
|
|
|
|
@ -107,6 +107,7 @@ macro(eth_install_executable EXECUTABLE) |
|
|
|
) |
|
|
|
|
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin) |
|
|
|
|
|
|
|
else() |
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin) |
|
|
|
endif () |
|
|
|