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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake