File: README.md

package info (click to toggle)
ecbuild 3.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,068 kB
  • sloc: sh: 1,404; perl: 732; f90: 472; cpp: 466; python: 383; ansic: 304; fortran: 43; makefile: 15
file content (32 lines) | stat: -rw-r--r-- 975 bytes parent folder | download | duplicates (4)
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
# Simple ecBuild project

## Contents

The project contains two directories. The `circle` directory contains a Fortran
library and a C test of the library. The `compute` directory contains a C++
executable linking to the `circle` library as well as to LAPACK and GSL, if
they can be found on the system.

## Pointing to the libraries

The FindLAPACK macro provided by CMake looks for LAPACK in the system dynamic
linker environment variables:
* `DYLD_LIBRARY_PATH` on Apple
* `LIB` on Windows
* `LD_LIBRARY_PATH` otherwise

The FindGSL macro provided by CMake looks for the `GSL_ROOT_DIR` environment
variable. The libraries are expected to be in `$GSL_ROOT_DIR/lib` and the
headers in `$GSL_ROOT_DIR/include/gsl`. On Unix, the
`$GSL_ROOT_DIR/bin/gsl-config` tool will be used if it exists.

## Usage

```
SRC_DIR=$PWD # Source directory containing the main CMakeLists.txt
BUILD_DIR=$PWD/build # Out-of-source build directory
cd $BUILD_DIR
ecbuild $SRC_DIR
make -j
ctest
```