How to Make a New LAMMPS Build
Go to the directory where LAMMPS is installed.
Create a folder and cd into the new build folder.
mkdir newbuildname; cd newbuildname
Configure the new build with packages that you want. In this example, i’m using the GRANULAR package.
cmake ../cmake -D PKG_GRANULAR=yes
The one above configures a new build with the package “GRANULAR”. To add multiple packages, simply add tack on more packages before the build.
cmake ../cmake -D PKG_SRD=yes
Finally, create the build.
cmake --build .
A list of all the packages can be found here.