ITK/Release 4/Modularization/Add a module/CMakeLists.txt

From KitwarePublic
< ITK‎ | Release 4‎ | Modularization
Revision as of 14:43, 15 September 2011 by Xiaoxiao (talk | contribs)
Jump to navigationJump to search

If this module only contains template source codes (no "src" subdirectory): <syntaxhighlight lang="cmake">

project(ITKFoo)
 
#itk_module_impl() takes care of the installation and export rule for the 
#module ITKFoo
itk_module_impl() 

</syntaxhighlight>


If this module generates a library (has a "src" subdirectory): <syntaxhighlight lang="cmake">

 project(ITKFoo)
 itk_module_impl()

</syntaxhighlight>