Compiling Gromacs dynamically with CUDA libraries and Disabling MPI/OMP

GROMACS version:2020.3
I want to compile GROMACS dynamically against CUDA libraries and at the same time disable MPI and OpenMP.
Any help would be much appreciated.
Thanks