Browse Source

missing cmake script

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
339fd2e1dd
  1. 17
      cmake/scripts/copydlls.cmake

17
cmake/scripts/copydlls.cmake

@ -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…
Cancel
Save