libxdrfile
March 9, 2017 ยท View on GitHub
Fork of MDAnalysis's implementation of xdrfile, which itself is a fork of GROMACS's implementation. I forked MDAnalysis' version because they have made several improvements that were never merged upstream. Additionally I wanted xdrfile to be a separate package that was easy to link other libraries to.
This version of xdrfile is required for libgmxfort.
Compilation
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
make
Installation
make install
Testing
To test the library capabilities, do:
make test
Linking other cmake projects
A file is included to easily link other cmake projects to the xdrfile
installation. Use find_package ( xdrfile ) and the variables
xdrfile_INCLUDE_DIRS and xdrfile_LIBRARIES.
pkg-config
A pkg-config file is included for use in compiling other programs. You may need
to set PKG_CONFIG_PATH to its location (by default /usr/local/lib/pkgconfig).