Hi there,
I'm wondering if there's an easy/efficient way to build a project's unit test on Windows.
I have one project that depends on Boost, and the unit tests fail because I didn't copy the DLL files.
Note that this is done during the build method, with the CMake helper.
I'm wondering if the imports method could be used here, I've never used it outside of test_package though.
If you have an idea I'd be glad to hear it!
Yes, the imports() method also works fine for build(). Indeed the behavior of building is:
imports() method in the build folder. Binaries of dependencies will be copied therebuild() method. It can use the dependencies imported files, like DLLsbuild() those copied files will be automatically removed, so they are not re-packaged (they are already packaged in the dependency, and when installed the dependency package will also be retrieved)Please try it and tell me how it goes.
It works perfectly \o/
Thanks a lot!
Most helpful comment
It works perfectly \o/
Thanks a lot!