build 384 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
2

gsell's avatar
gsell committed
3
pbuild::configure() {
4 5 6
	CC=$MPICC CXX=$MPICXX cmake \
		-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
		-DCMAKE_BUILD_TYPE=RELEASE \
7
		"${MODULE_SRCDIR}"
8 9
}

gsell's avatar
gsell committed
10 11 12 13 14
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
15 16