#!/usr/bin/env modbuild

pbuild::configure() {
	CC=$MPICC CXX=$MPICXX cmake \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
		-DCMAKE_BUILD_TYPE=RELEASE \
		"${MODULE_SRCDIR}"
}

pbuild::add_to_group 'MPI'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}"
pbuild::set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
pbuild::set_docfiles 'license.txt' 'README.txt'
pbuild::make_all


