Monday, February 8, 2010

Post Build Copying

Often we want to copy a dependent DLL to an output directory. This can often slow up our builds because after every build, we have to wait for the dlls to be copied. If we use xcopy with "\D" flag we can speed up our build times:

For example:
xcopy "\OpenCV2.0\bin\cv200.dll" $(TargetDir) /D
xcopy "\OpenCV2.0\bin\cxcore200.dll" $(TargetDir) /D

1 comment:

  1. Forgot to add the /Y which will suppress override questions:

    xcopy "\OpenCV2.0\bin\cv200.dll" $(TargetDir) /D /Y

    ReplyDelete