Skip to content
Snippets Groups Projects
CMakeLists.txt 737 B
Newer Older
  • Learn to ignore specific revisions
  • set(TESTS
      adolctest
      averagedistanceassemblertest
      cosseratenergytest
      frameinvariancetest
      harmonicenergytest
      localgeodesicfefunctiontest
      localgfetestfunctiontest
    
      localprojectedfefunctiontest
    
      orthogonalmatrixtest
    
      rigidbodymotiontest
    
      rodassemblertest
      rotationtest
      svdtest
      targetspacetest
    )
    
    foreach(_test ${TESTS})
    
      dune_add_test(SOURCES ${_test}.cc)
      target_compile_options(${_test} PRIVATE -g)
    
    endforeach()
    
    # Run distributed tests
    dune_add_test(SOURCES harmonicmaptest.cc
                  MPI_RANKS 1 4
                  TIMEOUT 600
                  CMAKE_GUARD MPI_FOUND)
    
    # Copy the example grid used for testing into the build dir
    
    file(COPY grids/irregular-square.msh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/grids)