File: INSTALL

package info (click to toggle)
libcerf 3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 760 kB
  • sloc: ansic: 4,905; f90: 250; makefile: 18
file content (37 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Build&install are based on CMake.
Out-of-source build is enforced.

== Standard build ==

Get the latest source archive (tgz) from
https://jugit.fz-juelich.de/mlz/libcerf/releases.
Unpack the archive, go to the source directory, and do:

mkdir build
cd build
cmake ..
make
ctest
make install

== Compile as C++ code ==

By default, the sources of libcerf are compiled as C code.
Alternatively, they can be compiled as C++. This is useful
under MS VisualStudio, which supports C++14, but not yet C99,
and in particular does not support complex.h under C.

To choose C++ compilation, do

cmake -DCERF_CPP=ON ..

In this case, the C++ code that calls functions from libcerf
must be compiled with the option -DCERF_AS_CPP.

== Uninstall ==

CMake does not produce a 'make uninstall' target.
Instead, use the list of installed files in the
build directory:

cat install_manifest.txt | xargs rm