Marek Kotewicz
10 years ago
1 changed files with 17 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
# 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}") |
|||
|
Loading…
Reference in new issue