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

From KitwarePublic
< ITK‎ | Release 4‎ | Modularization
Revision as of 20:22, 4 April 2011 by Xiaoxiao (talk | contribs)
Jump to navigationJump to search
 set(ITK-Foo SRC
    itkFoo.cxx
    )
  
 add_library(ITK-Foo ${ITK-Foo_SRC})
 target_link_libraries(ITK-Foo  ${ITK-Foo_LIBRARIES})  ${ITK-Foo_LIBRARIES} is defined in Foo/CMakeLists.txt
 itk_module_target(ITK-Foo)  # itk_module_target() set up the rules for installation and target export of this module