SofaSphFluid is an external plugin, hence it is added to a project always after SofaCUDA.
Right now, SofaCUDA embeds SPH implementations that are optionally compiled if SofaSphFluid is found. But, that cannot happen.
I recommend to move the code from SofaCUDA to SofaSphFluid as an extension.