[Insight-users] problem building .dll

soumend@magnum.barc.ernet.in soumend at magnum . barc . ernet . in
Thu, 30 Oct 2003 23:07:07 +0530 (IST)


Hi All,
 
I have tried to make a shared library (.dll) from a group of cxx file. For that 
I have used following cmakelist....
 
PROJECT(newclass)
....
ADD_LIBRARY(newclass SHARED 
DICOMImageSeriesFilesTOImageData.cxx
ietkDICOMSeriesIO.cxx
DICOMApphelper1.cxx
)
 
TARGET_LINK_LIBRARIES(newclass
vtkGraphics 
vtkRendering 
vtkImaging 
vtkFiltering 
vtkCommon 
vtkIO
vtkftgl
vtkzlib 
vtkHybrid
ITKBasicFilters
itksys
ITKCommon 
ITKIO 
itkzlib
ITKNumerics
ITKAlgorithms
)
 
but it is creating only newclass.dll.so whenever i am trying to use this new 
library there arises a linking error that newclass.lib is not found. I presume 
it is problem with cmake only but cant figure out the problem. will anyone help 
me out.
thanx.
soumen





-------------------------------------------------