[CMake] How to link against a .dll with cmake?

John Drescher drescherjm at gmail.com
Sat Jul 24 23:00:38 EDT 2010


>> I know that target_link_libraries can be used to link a .lib ,
>>
>> but how to link a .dll into the project?
>>
>>
> You do not link against a .dll in windows ever.
>
When you create a .dll there is also a small import lib associated
with the dll. You link with that and when the application starts it
searches the path for each dll it needs.

John


More information about the CMake mailing list