The following instructions must be executed for the software projects
in the given order.
Each source package comes with configuration files for the cross-platform build system CMake. Using CMake, it takes the following commands to build and install the software:
$ cd <source_dir> $ mkdir build # see note  $ cd build $ cmake [<options>] .. # see note  $ make -j4 # see note  $ ctest -j4 $ make install # see note 
The build process must take place “out of place”, i.e. not directly in the source directory.
Otherwise, location and name of the build directory are arbitrary.
We nonetheless recommend to follow our convention,
create a subdirectory under the source directory, and call it
With GNU Make, the option
-j<n> indicates the number of processors to be used in parallel.
In our experience, the alternative build software
Ninja is faster and therefore to be preferred.
To use Ninja,
The install directory can be specified by suppling the option
-DCMAKE_INSTALL_PREFIX=<install_dir> to the
Depending on the choice of the installation directory,
it may or may not be necessary to run the command
ninja install) under
cmake options already mentioned, you may need
<paths> is a semicolon-separated list of directories
specifying directories that are searched by CMake for
the libraries and auxiliary programs that are needed for building BornAgain.