[CMake] Question about install()

Mike Arthur mike at mikearthur.co.uk
Wed Dec 10 06:04:27 EST 2008


On Tuesday 09 December 2008 22:33:22 Robert Dailey wrote:
> I have a directory that contains DLL files that I need to copy to the
> directory at which my executable is built. However, the DLL files that I
> copy over are different depending on the configuration that was used to
> build the executable. For example, if I've built my executable using the
> DEBUG configuration, I need to copy over DLL files named foo_d.dll,
> bar_d.dll. If RELEASE was used to build the executable, then I need to copy
> over foo.dll and bar.dll. Since the debug/release executables are placed in
> different directories by CMake when they are built, the destination
> location for the DLLs also changes across configurations as well.
Are you building these DLLs or are they binaries? If so, why does it need to 
be post-build and not pre-build? 

If the latter is acceptable then I've got a solution for you, we've used at my 
place of work.

-- 
Cheers,
Mike Arthur
http://mikearthur.co.uk/


More information about the CMake mailing list