#===============================================================================
# @file   CMakeLists.txt
#
# @author Marco Vocialta <marco.vocialta@epfl.ch>
#
# @date creation: Sun Oct 19 2014
# @date last modification:  Fri Jan 15 2016
#
# @brief  configuration for extrinsic cohesive elements tests
#
#
# @section LICENSE
#
# Copyright (©) 2010-2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
# Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
#
# Akantu is free software: you can redistribute it and/or modify it under the
# terms of 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.
# 
# Akantu 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 Lesser General Public License for more
# details.
# 
# You should have received a copy of the GNU Lesser General Public License along
# with Akantu. If not, see <http://www.gnu.org/licenses/>.
#
# @section DESCRIPTION
#
#===============================================================================


add_mesh(test_cohesive_extrinsic_mesh triangle.geo 2 1)
add_mesh(test_cohesive_extrinsic_quadrangle_mesh quadrangle.geo 2 2)
add_mesh(test_cohesive_extrinsic_tetrahedron_mesh tetrahedron.geo 3 2)

register_test(test_cohesive_extrinsic
  SOURCES test_cohesive_extrinsic.cc
  DEPENDS test_cohesive_extrinsic_mesh
  FILES_TO_COPY material.dat
  DIRECTORIES_TO_CREATE paraview
  PACKAGE cohesive_element
  )

register_test(test_cohesive_extrinsic_quadrangle
  SOURCES test_cohesive_extrinsic_quadrangle.cc
  DEPENDS test_cohesive_extrinsic_quadrangle_mesh
  PACKAGE cohesive_element
  )

register_test(test_cohesive_extrinsic_tetrahedron
  SOURCES test_cohesive_extrinsic_tetrahedron.cc
  DEPENDS test_cohesive_extrinsic_tetrahedron_mesh
  PACKAGE cohesive_element
  )

register_test(test_cohesive_extrinsic_fatigue
  SOURCES test_cohesive_extrinsic_fatigue.cc
  FILES_TO_COPY material_fatigue.dat fatigue.msh
  DIRECTORIES_TO_CREATE paraview
  PACKAGE cohesive_element
  )
