[CMake] Copying of 3rd party DLLs in a POST-BUILD step

David Cole david.cole at kitware.com
Mon Jan 9 11:41:01 EST 2012


2012/1/9 Hauke Heibel <hauke.heibel at googlemail.com>:
> 2012/1/9 Michael Stürmer <m.stuermer at pmdtec.com>:
>> Awesome! Sometimes you just need to know what's already available to solve your problems in a very elegant way. I'll have a look at these bundles and probably switch to them instead of maintaining my own stuff!
>
> When looking at the initial problem, I am pretty much convinced that
> you need a combination of your own script and GetPrerequisites since
> you want to copy to your run-time output directory - and there to
> specific sub-directories depending on the build type.
>
> It may well be that I have overseen some functionality in those new modules ...
>
> - Hauke

BundleUtilities, on Windows, should copy dlls to be in the same
directory as the executable being analyzed... So, as long as the exe
is in the right directory when fixup_bundle is called on it, then the
dlls will get copied into that same directory.


Cheers,
David


More information about the CMake mailing list