[IGSTK-Developers] Re: [Insight-users] creating a DLL

Luis Ibanez luis.ibanez at kitware.com
Mon Apr 11 15:04:13 EDT 2005


Hi Junhui,

Please read the Download instructions.
They explain how to get the code of
InsightApplications:

   http://www.itk.org/Wiki/ITK_Source


Regards,


    Luis


---------------------------
junhui wang wrote:

> Hi Luis,
> 
> Where is the InsightApplications/VolviewPlugins
> directory? I can not find it.
> 
> Suppose I want to build
> \examples\dataRepresentation\path\PolyLineParametricPath1.cxx
> into a DLL instead of an exe, how to change the
> corresponding CMakeLists.txtx file in the following:
> 
> ==============
> PROJECT(PathExamples)
> 
> INCLUDE( ${CMAKE_ROOT}/Modules/FindITK.cmake )
> IF( ITK_USE_FILE )
>   INCLUDE( ${ITK_USE_FILE} )
> ENDIF( ITK_USE_FILE )
> 
> ADD_EXECUTABLE(PolyLineParametricPath1
> PolyLineParametricPath1.cxx )
> TARGET_LINK_LIBRARIES(PolyLineParametricPath1
> ITKCommon ITKIO)
> 
> ADD_TEST(PolyLineParametricPath1
> ${CXX_TEST_PATH}/PolyLineParametricPath1
>    
> ${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
> )
> ======================
> 
> Thanks a lot.
> 
> Albert
> --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
> 
>>Hi Tim,
>>
>>
>>For an example on how to create DLLs based on ITK
>>classes
>>please look at the CMakeLists.txt file in the
>>directory
>>
>>
>>    InsightApplications/
>>                 VolviewPlugins
>>
>>
>>The key is to use "MODULE" in the "ADD_LIBRARY"
>>command.
>>
>>Note that CMake don't use the term "SHARED" because
>>some
>>"special"  :-)   systems like OSX have a different
>>concept
>>for libraries that can be dynamically loaded.
>>
>>
>>
>>    Regards,
>>
>>
>>       Luis
>>
>>
>>
>>
>>
>>-------------------------
>>Tim Soper wrote:
>>
>>
>>>I am having some trouble creating an ITK project
>>
>>in
>>
>>>visual studio that compiles to give a DLL instead
>>
>>of
>>
>>>an executable. Is there an option I should be
>>
>>changing
>>
>>>in the project settings or is there some option I
>>>should set in my CMakeList.txt? Thanks
>>>
>>>-Tim-
>>>
>>>
>>>		
>>>__________________________________ 
>>>Do you Yahoo!? 
>>>Yahoo! Personals - Better first dates. More second
>>
>>dates. 
>>
>>>http://personals.yahoo.com
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Read only the mail you want - Yahoo! Mail SpamGuard. 
> http://promotions.yahoo.com/new_mail 
> 
> 






More information about the IGSTK-Developers mailing list