[CMake] CMake Visual Studio 2005 and DLLs
Tyler Roscoe
tyler at cryptio.net
Mon Mar 22 12:12:23 EDT 2010
On Sat, Mar 20, 2010 at 07:30:36PM +0100, Theodore Papadopoulo wrote:
> All the tests (in the test directory) that use the DLL in the src
> directory fail at runtime because they do not
> find the dll... I suspect this is because of a different directory. All
> the examples I have found use the same directory
> for the DLL and the examples.
AFAIK there are ~3 ways to solve this:
- Make the build system deposit your built unittest executable alongside
the DLLs.
- Set up install rules to put the unittest executable alongisde the DLLs
before running the unit tests.
- Use a wrapper script that adds the DLL directory to your PATH before
running the unittest executable.
tyler
More information about the CMake
mailing list