Appendix A: Building LAMMPS with CMake
In this appendix, we will give a brief tutorial on how to build LAMMPS with CMake. Unlike the traditional Makefile, CMake can detect available hardware, tools, features, and libraries and adjust the LAMMPS default build configuration accordingly. CMake allows customized settings with a text mode or graphical user interface, without requiring any knowledge of file formats or complex command-line syntax. In addition, CMake can automate dependency tracking for all files and configuration options.
Technical requirements
To execute the instructions in this chapter, you need a platform to compile LAMMPS (for example, a Linux Terminal).
Prerequisites for working with LAMMPS
Before we start working with LAMMPS, ...
Get Extending and Modifying LAMMPS Writing Your Own Source Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.