Skip to content

Commit

Permalink
updated README for build with gfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
gorges97 committed Feb 4, 2025
1 parent 3ff9c77 commit e2dd88a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ Place the executables into your ``$HOME/bin/`` directory or path.

## Compilers

ifort(<=2021.10.0), icc(<=2021.10.0)
1. ifort(<=2021.10.0), icc(<=2021.10.0)
2. gfortran, gcc

### Meson
### Meson using ifort and icc

Using [meson](https://mesonbuild.com/) as build system requires you to install a fairly new version like 0.062 or newer.
To use the default backend of meson you have to install [ninja](https://ninja-build.org/) version 1.7 or newer.
Expand All @@ -74,6 +75,22 @@ ninja -C build
This will build a static linked binary in the ``build`` folder. Copy the binary from ``build/qcxms2`` file into a directory in your path, e.g. ``~/bin/``.


### CMake using gfortran and gcc


The CMake build system requires both make and CMake to be installed, the latter has to be version 3.9 or newer.

Building `qcxms2` with CMake works with the following chain of commands:

```bash
export FC=gfortran CC=gcc
cmake -B build -DCMAKE_BUILD_TYPE=Release
make -C build
```

This will build a static linked binary in the ``build`` folder. Copy the binary from ``build/qcxms2`` file into a directory in your path, e.g. ``~/bin/``.


### Usage

To calculate an electron ionization mass spectrum with the default settings, run qcxms2 from the command line for an input molecule in an xyz coordinate file
Expand Down

0 comments on commit e2dd88a

Please sign in to comment.