Hi,
In theory, one can compose CMake projects like that, but we have not tried
to make that work with GROMACS. A better approach is probably to use a
CMake external project to build GROMACS and thereby install it into the
build tree. That installation has a FindGROMACS.cmake file that your main
Is it possible to use libgromacs in a CMake based project which links the
library in at build time (but from source as opposed to a system-wide
installation?)
So far I have the gromacs source included as a submodule from
https://github.com/gromacs/gromacs.git located in the subdirectory