-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
In order to include PUMAS in your project you simply need a copy of the files
pumas.h and
pumas.c. Nevertheless,
hereafter are detailed instructions for building PUMAS as a standalone library,
and for building the examples.
Note that whatever the method used or the platform, you'll need a C99
compatible compiler, e.g. gcc
on UNIX or Visual Studio
on Windows.
On UNIX you might directly use the provided Makefile. E.g., cloning the present repository:
git clone https://github.com/niess/pumas && cd pumas && make
This will build PUMAS as a shared library (in lib/libpumas.so
).
In addition, the examples can be built in the bin
directory by further
issuing make examples
.
The toolchain for building PUMAS can also be generated using CMake with the provided CMakeLists.txt. Instructions for running cmake on Windows and UNIX platforms are provided on the CMake website. The following PUMAS specific build options are available:
Build PUMAS as a shared library. Set to FALSE
in order to build PUMAS as a
static library instead.
Also build the examples under bin
.
Also build the test suite.
Enable specific options for debuging with gdb
on UNIX systems.