1project('test scalapack', 'c') 2 3mpi_c = dependency('mpi', language: 'c', required: false) 4if not mpi_c.found() 5 error('MESON_SKIP_TEST: MPI library not available') 6endif 7 8scalapack = dependency('scalapack', required: false) 9if not scalapack.found() 10 error('MESON_SKIP_TEST: scalapack library not available') 11endif 12 13c_exe = executable('scalapack_c', 'main.c', 14 dependencies: [scalapack, mpi_c]) 15test('scalapack_c', c_exe, timeout: 30) 16 17if add_languages('fortran', required: false) 18 mpi_f = dependency('mpi', language: 'fortran', required: false) 19 if not mpi_f.found() 20 error('MESON_SKIP_TEST: MPI Fortran library not available') 21 endif 22 23 f_exe = executable('scalapack_fortran', 'main.f90', 24 dependencies: [scalapack, mpi_f]) 25 test('scalapack_fortran', f_exe, timeout: 30) 26endif 27