ITK/Release 4/Modularization/Add a module/src/CMakeLists.txt
From KitwarePublic
< ITK | Release 4 | Modularization
Jump to navigationJump to search
Revision as of 15:39, 20 July 2011 by Matt.mccormick (talk | contribs)
<syntaxhighlight lang="cmake">
set(ITKFoo SRC itkFoo.cxx ) add_library(ITKFoo ${ITKFoo_SRC}) target_link_libraries(ITKFoo ${ITKFoo_LIBRARIES}) # ${ITKFoo_LIBRARIES} is defined in Foo/CMakeLists.txt itk_module_target(ITKFoo) # itk_module_target() set up the rules for installation and target export of this module
</syntaxhighlight>