We recommend, and assume in the following, that development is done under Linux. Expert developers who prefer to work under another operating system will have to adapt the following on their own.
We need a Python installation, preferable in a virtual environment so that we easily install and uninstall modules, and switch between different versions of Python. See
Developers need additional tools, beyond those required for building BornAgain from source:
auto/Wrap
;auto/Examples
and auto/MiniExamples
;Of these, clang-format is not controlled by make
, but must be run manually.
Optionally, the following tools can be needed:
See
To wrap compilers by ccache, and to replace Make by Ninja,
add the following to your .bashrc
:
alias cm='cmake .. -GNinja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache'
Then use cm
instead of cmake ..
.
As developer, configure CMake with
cmake .. -DDEV=ON
This activates additional build targets.
In particular, all contents of the auto
directory is regenerated if out of sync.