# ------------------------------------------------------------------------------ # OOMPH auto-inserted: warn once if user configures inside an existing build. if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt" AND CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) message( WARNING "You're re-configuring an existing build tree. For a clean configuration, " "delete the whole build folder and start with a fresh directory.") endif() # ------------------------------------------------------------------------------ list(APPEND CMAKE_MESSAGE_INDENT " ") message(VERBOSE "Entered convergence_tests subdirectory") cmake_minimum_required(VERSION 3.22 FATAL_ERROR) project(convergence_tests C CXX Fortran) if(NOT oomphlib_FOUND) find_package(oomphlib CONFIG REQUIRED PATHS "../../../../install") endif() include(CTest) oomph_add_executable( NAME q_convergence_3d SOURCES q_convergence_3d.cc LIBRARIES oomph::poisson oomph::meshes oomph::generic) oomph_add_executable( NAME q_convergence_2d SOURCES q_convergence_2d.cc LIBRARIES oomph::poisson oomph::meshes oomph::generic) oomph_add_executable( NAME t_convergence_2d SOURCES t_convergence_2d.cc LIBRARIES oomph::poisson oomph::meshes oomph::generic) oomph_add_executable( NAME t_convergence_3d SOURCES t_convergence_3d.cc LIBRARIES oomph::poisson oomph::meshes oomph::generic) # ---------------------------------- TESTING ---------------------------------- oomph_add_test( TEST_NAME self_test.poisson.convergence_tests DEPENDS_ON q_convergence_3d q_convergence_2d t_convergence_2d t_convergence_3d COMMAND ./validate.sh ${OOMPH_ROOT_DIR} TEST_FILES validate.sh validata) message(VERBOSE "Leaving convergence_tests subdirectory") # ------------------------------------------------------------------------------