# brl/bbas/bsta/algo/tests/CMakeLists.txt
# Tests for bsta/algo library

ADD_EXECUTABLE( bsta_algo_test_all
  test_driver.cxx
  test_fit_weibull.cxx
  test_gaussian_model.cxx
  test_mean_shift.cxx
  test_fit_gaussian.cxx
  test_von_mises_update.cxx
  test_beta_updater.cxx
  test_rand_sampling.cxx
)

TARGET_LINK_LIBRARIES( bsta_algo_test_all bsta_algo vnl vgl testlib )

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/beta_distr_100_100.txt ${CMAKE_CURRENT_BINARY_DIR}/beta_distr_100_100.txt COPYONLY )
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/beta_distr_10_100.txt ${CMAKE_CURRENT_BINARY_DIR}/beta_distr_10_100.txt COPYONLY )
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/beta_distr_100_10.txt ${CMAKE_CURRENT_BINARY_DIR}/beta_distr_100_10.txt COPYONLY )

ADD_TEST( bsta_algo_test_fit_weibull  ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_fit_weibull )
ADD_TEST( bsta_algo_test_gaussian_model ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_gaussian_model )
ADD_TEST( bsta_algo_test_mean_shift  ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_mean_shift )
ADD_TEST( bsta_algo_test_fit_gaussian ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_fit_gaussian )
ADD_TEST( bsta_algo_test_von_mises_update  ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_von_mises_update )
ADD_TEST( bsta_algo_test_beta_updater  ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_beta_updater )
ADD_TEST( bsta_algo_test_rand_sampling  ${EXECUTABLE_OUTPUT_PATH}/bsta_algo_test_all test_rand_sampling )
ADD_EXECUTABLE( bsta_algo_test_include test_include.cxx )
TARGET_LINK_LIBRARIES( bsta_algo_test_include bsta_algo )
ADD_EXECUTABLE( bsta_algo_test_template_include test_template_include.cxx )
TARGET_LINK_LIBRARIES( bsta_algo_test_template_include bsta_algo )
