A problem long-suffered on Windows and when lacking RPATH. Have seen approaches where DLL dependencies are POST_BUILD customed-command-copied-if-different into the executable directory, or gymnastics with add_test WORKING_DIRECTORY, or setting a test's ENVIRONMENT property.
On Fri, Nov 6, 2015 at 3:14 PM, Scott Aron Bloom <sc...@towel42.com> wrote: > I have a unit test, that I have have avoided deploying, because its > executable (gmock/gtest based) depends on a third party dll. Essentially > it’s a unit test to test our interface to the thirdparty library. So for > much of the application unittesting, I have a mock to simulate the 3rd party > lib.. But for this set of tests, I really want to make sure the ACTUAL > interface works. > > > > How can I add/set the PATH for an executable to run with so it picks up the > DLL (or so on linux)? > > > Scott > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake