<div dir="ltr"><br>Hello all,<br><br>I have a my project which uses VTK (and ITK and Qt). Now I need to deploy this project to other machines. For that, I figured out I need to have a .dll and not a .lib for my project. For that, I added the following line to my CMakeLists.txt file:<br>
<br>ADD_LIBRARY(MyLib SHARED ${SRCS} ${HDRS})<br><br>However, this gives me a slew of errors in the .obj files. They look something like: "public: class vtkImageData * __thiscall vtkImageAlgorithm::GetOutput(void)" (?GetOutput@vtkImageAlgorithm@@QAEPAVvtkImageData@@XZ)<br>
<br><br>Could someone please help me to figure out a way to allow visual studio to build a library for me?<br><br>Is there a better way to do this?<br><br>I need to figure this out before my deployment deadline :-)<br><br>
<br>Any help will be highly appreciated.<br><br>Thanks,<br>Prathamesh<br><br></div>