[vtkusers] creating a dll with CMake for a VTK project

John Drescher drescherjm at gmail.com
Mon Jul 19 12:28:31 EDT 2010


On Mon, Jul 19, 2010 at 12:25 PM, John Drescher <drescherjm at gmail.com> wrote:
> On Mon, Jul 19, 2010 at 12:20 PM, Prathamesh Kulkarni
> <prathameshmkulkarni at gmail.com> wrote:
>> Hey John,
>>
>> Thanks for your help. Could you please tell/ point me on how to link the dll
>> to vtk libs?
>>
>
> In your TARGET_LINK_LIBRARIES statement in your CMakeLists.txt for the
> .dll you should have at minimum vtkCommon but probably more depending
> on what parts of vtk you are using.
>

BTW, you will also will need a statement like this in your
CMakeLists.txt file for your main application unless you plan on
wrapping all your vtk code inside your dll and not exposing vtk to the
main application.

John



More information about the vtkusers mailing list