[CMake] DLL and lib file

Sergio Andres sergio at unizar.es
Wed Dec 1 13:38:41 EST 2004


Hi all,

I have a problem with DLL libraries.
I generated a (MSVC60) project with CMake to create a DLL library.
Then, I compiled the code and I got a new .dll and a .lib file ( import 
lib file for the DLL)

I also used CMake to generate other project to create an executable, 
which uses the previous library.
The problem is that the dll is not found, unless it is in the .exe file 
directory.

However, to build the first library another library (I did not create 
it) is used (dll and .lib file).
And there are no problems with it.

So, what should I do to work with my dll?
Can I use it without copying it to the executable directory??

Thank you!

Regards,
Sergio.


More information about the CMake mailing list