set(Transforms_sources
  Transforms/itkAdvancedTransform.cpp
  Transforms/itkSparseKernelTransform.cpp
  Transforms/itkCompactlySupportedRBFSparseKernelTransform.cpp
  Transforms/itkThinPlateSplineKernelTransform2.cpp
  Transforms/itkKernelTransform2.cpp
  )

set(Procrustes_sources
  Procrustes3D.cpp
  )

add_library(Alignment STATIC
  ${Procrustes_sources}
  ${Transforms_sources}
  )

target_include_directories(Alignment PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Transforms>
  $<INSTALL_INTERFACE:include>
  )

target_link_libraries(Alignment PUBLIC
  tinyxml
  Eigen3::Eigen
  )

install(TARGETS Alignment EXPORT ShapeWorksTargets
  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
  RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  PUBLIC_HEADER DESTINATION include
  )
