@ -139,6 +139,12 @@ macro(eth_install_executable EXECUTABLE)
COMPONENT ${EXECUTABLE}
)
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/"
DESTINATION bin
CONFIGURATIONS RelWithDebInfo
else()
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
endif ()
@ -8,10 +8,10 @@
# this script is created cause we do not know configuration in multiconfiguration generators at cmake configure phase ;)
if ("${CONF}" STREQUAL "Release")
set(DLL ${DLL_RELEASE})
else () # Debug
if ("${CONF}" STREQUAL "Debug")
set(DLL ${DLL_DEBUG})
else ()
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${DLL}" "${DESTINATION}")
@ -41,9 +41,9 @@ if (JSCONSOLE)
target_link_libraries(${EXECUTABLE} jsconsole)
if (DEFINED WIN32 AND NOT DEFINED CMAKE_COMPILER_IS_MINGW)
eth_copy_dlls("${EXECUTABLE}" MHD_DLLS)
#if (DEFINED WIN32 AND NOT DEFINED CMAKE_COMPILER_IS_MINGW)
# eth_copy_dlls("${EXECUTABLE}" MHD_DLLS)
#endif()
if (APPLE)
install(TARGETS ${EXECUTABLE} DESTINATION bin)