# ------------------------------------------------------------------------------ # 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 unstructured_solid subdirectory") cmake_minimum_required(VERSION 3.22 FATAL_ERROR) project(unstructured_solid C CXX Fortran) if(NOT oomphlib_FOUND) find_package(oomphlib CONFIG REQUIRED PATHS "../../../install") endif() include(CTest) oomph_add_executable( NAME unstructured_three_d_solid SOURCES unstructured_three_d_solid.cc LIBRARIES oomph::solid oomph::constitutive oomph::meshes oomph::generic) oomph_add_executable( NAME unstructured_two_d_solid SOURCES unstructured_two_d_solid.cc LIBRARIES oomph::solid oomph::constitutive oomph::meshes oomph::generic) # ---------------------------------- TESTING ---------------------------------- oomph_add_test( TEST_NAME solid.unstructured_solid DEPENDS_ON unstructured_three_d_solid unstructured_two_d_solid COMMAND ./validate.sh ${OOMPH_ROOT_DIR} TEST_FILES validate.sh validata cube_hole.1.ele cube_hole.1.face cube_hole.1.node solid.fig solid.fig.1.ele solid.fig.1.node solid.fig.1.poly solid.fig.poly) message(VERBOSE "Leaving unstructured_solid subdirectory") # ------------------------------------------------------------------------------