# Copyright 2019 Free Software Foundation, Inc.
#
#  This file is part of the GNU MP Library.
#
#  The GNU MP Library is free software; you can redistribute it and/or modify
#  it under the terms of either:
#
#    * the GNU Lesser General Public License as published by the Free
#      Software Foundation; either version 3 of the License, or (at your
#      option) any later version.
#
#  or
#
#    * the GNU General Public License as published by the Free Software
#      Foundation; either version 2 of the License, or (at your option) any
#      later version.
#
#  or both in parallel, as here.
#
#  The GNU MP Library is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
#  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
#  for more details.
#
#  You should have received copies of the GNU General Public License and the
#  GNU Lesser General Public License along with the GNU MP Library.  If not,
#  see https://www.gnu.org/licenses/.


set(TESTS
  t-asmtype t-aors_1 t-divrem_1 t-mod_1 t-fat t-get_d
  t-instrument t-iord_u t-mp_bases t-perfsqr t-scan
  logic t-toom22 t-toom32 t-toom33 t-toom42 t-toom43 t-toom44
  t-toom52 t-toom53 t-toom54 t-toom62 t-toom63 t-toom6h t-toom8h
  t-toom2-sqr t-toom3-sqr t-toom4-sqr t-toom6-sqr t-toom8-sqr
  t-div t-mul t-mullo t-sqrlo t-mulmod_bnm1 t-sqrmod_bnm1 t-mulmid
  t-hgcd t-hgcd_appr t-matrix22 t-invert t-bdiv
  t-broot t-brootinv t-minvert t-sizeinbase
  t-addaddmul t-fib2m t-gcd_11 t-gcd_22 t-gcdext_1 t-mulmod_bknp1 t-sqrmod_bknp1)
foreach(test ${TESTS})
  add_executable(mpn-${test} ${test}.c)
  target_link_libraries(mpn-${test} libgmp libtests)
  add_test(mpn-${test} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mpn-${test})
endforeach()
