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

andy fillebrown andy.fillebrown at gmail.com
Sun Jul 25 00:09:00 EDT 2010


mingw can link using a .dll


On Sat, Jul 24, 2010 at 11:00 PM, John Drescher <drescherjm at gmail.com> wrote:
>>> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list