You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
452 B

# this module expects
# DLLS
# CONFIGURATION
# DESTINATION
# example usage:
# cmake -DLLS=${MHD_LIBRARIES} -DCONFIGURATION=Release -DDESTINATION=dest -P scripts/copydlls.cmake
# expects DLLS to be in format optimized;path_to_dll.dll;debug;path_to_dll_d.dll
if (${CONFIGURATION} STREQUAL "Release")
list(GET DLLS 1 DLL)
else () # Debug
list(GET DLLS 3 DLL)
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${DLL}" "${DESTINATION}")