# vxl/vgl/algo/CMakeLists.txt

PROJECT(vgl_algo)


SET( vgl_algo_sources
  vgl_algo_fwd.h
  vgl_rtree.txx                            vgl_rtree.h
  vgl_orient_box_3d.txx                    vgl_orient_box_3d.h
  vgl_ellipsoid_3d.txx                     vgl_ellipsoid_3d.h
  vgl_homg_operators_1d.txx                vgl_homg_operators_1d.h
  vgl_homg_operators_2d.txx                vgl_homg_operators_2d.h
  vgl_homg_operators_3d.txx                vgl_homg_operators_3d.h
  vgl_h_matrix_1d.txx                      vgl_h_matrix_1d.h
  vgl_h_matrix_2d.txx                      vgl_h_matrix_2d.h
  vgl_h_matrix_3d.txx                      vgl_h_matrix_3d.h
  vgl_p_matrix.txx                         vgl_p_matrix.h
  vgl_norm_trans_2d.txx                    vgl_norm_trans_2d.h
  vgl_norm_trans_3d.txx                    vgl_norm_trans_3d.h
  vgl_compute_similarity_3d.txx            vgl_compute_similarity_3d.h
                                           vgl_h_matrix_1d_compute.h
  vgl_h_matrix_1d_compute_linear.cxx       vgl_h_matrix_1d_compute_linear.h
  vgl_h_matrix_1d_compute_3point.cxx       vgl_h_matrix_1d_compute_3point.h
  vgl_h_matrix_1d_compute_optimize.cxx     vgl_h_matrix_1d_compute_optimize.h
                                           vgl_h_matrix_2d_compute.h
  vgl_h_matrix_2d_compute_linear.cxx       vgl_h_matrix_2d_compute_linear.h
  vgl_h_matrix_2d_compute_4point.cxx       vgl_h_matrix_2d_compute_4point.h
  vgl_h_matrix_2d_compute_rigid_body.cxx   vgl_h_matrix_2d_compute_rigid_body.h
  vgl_line_2d_regression.txx               vgl_line_2d_regression.h
  vgl_fit_lines_2d.txx                     vgl_fit_lines_2d.h
  vgl_convex_hull_2d.txx                   vgl_convex_hull_2d.h
                                           vgl_h_matrix_2d_optimize.h
  vgl_h_matrix_2d_optimize_lmq.cxx         vgl_h_matrix_2d_optimize_lmq.h
  vgl_conic_2d_regression.txx              vgl_conic_2d_regression.h
  vgl_fit_conics_2d.txx                    vgl_fit_conics_2d.h
  vgl_fit_plane_3d.txx                     vgl_fit_plane_3d.h
  vgl_intersection.txx                     vgl_intersection.h
                                           vgl_rotation_3d.h
                                           vgl_rtree_c.h
  vgl_orient_box_3d_operators.txx          vgl_orient_box_3d_operators.h
                                           vgl_h_matrix_3d_compute.h
  vgl_h_matrix_3d_compute_linear.cxx       vgl_h_matrix_3d_compute_linear.h
)
AUX_SOURCE_DIRECTORY(Templates vgl_algo_sources)

ADD_LIBRARY(vgl_algo ${vgl_algo_sources})
TARGET_LINK_LIBRARIES( vgl_algo vgl vnl_algo vnl )

INSTALL_TARGETS(/lib vgl_algo)
INSTALL_NOBASE_HEADER_FILES(/include/vxl/core/vgl/algo ${vgl_algo_sources})

IF( BUILD_TESTING )
  SUBDIRS(tests)
ENDIF( BUILD_TESTING )
