Skip to main content

Conan, dynamic libraries on windows

· One min read
Hreniuc Cristian-Alexandru

In your application you have to copy the dynamic libraries to the user space from the local cache. To do that you have to have the import method in the conanfile.py from your application. You will have to paste this code in the conanfile.py from your project:

def import(self):
self.copy(*.dll, bin, bin)
self.copy(*.dylib, bin, bin)

Here is the official documentation of the method: http://docs.conan.io/en/latest/reference/conanfile/methods.html#imports