
set( SimpleITKRegistration
  sitkImageRegistrationMethod.cxx
  sitkImageRegistrationMethod_CreateOptimizer.cxx
  )

include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )

# these files are the instantiated ITK filter, but they do not do IO,
# so we don't need to register the IO factories here.
set ( ITK_NO_IO_FACTORY_REGISTER_MANAGER 1 )
include(${ITK_USE_FILE})

add_library ( SimpleITKRegistration ${SimpleITKRegistration} )
target_link_libraries ( SimpleITKRegistration ${ITK_LIBRARIES} SimpleITKCommon )
set_target_properties( SimpleITKRegistration PROPERTIES SKIP_BUILD_RPATH TRUE )

sitk_install_exported_target( SimpleITKRegistration )


set( SimpleITKRegistration
  sitkImageRegistrationMethod.cxx
  sitkImageRegistrationMethod_CreateOptimizer.cxx
  )

include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )

# these files are the instantiated ITK filter, but they do not do IO,
# so we don't need to register the IO factories here.
set ( ITK_NO_IO_FACTORY_REGISTER_MANAGER 1 )
include(${ITK_USE_FILE})

add_library ( SimpleITKRegistration ${SimpleITKRegistration} )
target_link_libraries ( SimpleITKRegistration ${ITK_LIBRARIES} SimpleITKCommon SimpleITKBasicFilters0 )
set_target_properties( SimpleITKRegistration PROPERTIES SKIP_BUILD_RPATH TRUE )

sitk_install_exported_target( SimpleITKRegistration )

Add basic filters library to registration
Add basic filters library to registration

To use the Cast filter in the registration library, it needs to be
linked against the 0th basic filters library.

Change-Id: Id60e3cc1d012ecbeb4e9923bc6b8e6139fe024a1
