[Insight-users] Fwd: Make DLL whit cmake

John Drescher drescherjm at gmail.com
Wed Apr 15 16:29:12 EDT 2009


On Wed, Apr 15, 2009 at 4:07 PM, Arepi <szamosi.arpad at gmail.com> wrote:
>
> Hi,
>
> I would like make DLL file from itk projekt.
> I've the following cmakelists what make the executable
>
>
> cmake_minimum_required(VERSION 2.6)
>
> PROJECT(DICOMreader)
> FIND_PACKAGE(ITK)
> INCLUDE(${ITK_USE_FILE})
> ADD_EXECUTABLE(DICOMreader Read.cxx)
> TARGET_LINK_LIBRARIES(DICOMreader ITKAlgorithms ITKBasicFilters ITKCommon
> ITKFEM
> ITKIO ITKNrrdIO ITKNumerics ITKSpatialObject ITKStatistics ITKniftiio
> ITKznz)
>

Where is your code for your library? All I see here is you are
creating an executable.

>
> I found any suggestion in maling list archive that should pass the line:
> ADD_LIBRARY( myLibraryName  SHARED ${LIST_OF_SOURCE_FILES} )
>
> but I dont know where should pass it and what more necessary also.
>
That looks correct. If you were creating a library.

John


More information about the Insight-users mailing list