cmake -D CMAKE_C_COMPILER=/usr/bin/gcc-7 \
-D CMAKE_CXX_COMPILER=/usr/bin/g++-7 \
-D HDF5_USE_STATIC_LIBRARIES=yes \
-D CMAKE_INSTALL_PREFIX=$GADGETRON_HOME \
-D CMAKE_EXE_LINKER_FLAGS="-lpthread -lz -ldl" \
-D LAPACKE_LIBRARIES=/usr/lib64/liblapacke.so \
-D OPENBLAS_OMP_LIBRARIES=/usr/lib64/libopenblas_openmp.so \
..
Please note that this build does not include MATLAB or CUDA support within Gadgetron. I don't have access to either of these in my build environment, so I am unable to test and build with these elements.