mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-09 04:43:28 +01:00
Add linking instructions to README
This commit is contained in:
parent
11cb1de4a5
commit
f85c52f3f8
18
README.md
18
README.md
@ -73,6 +73,24 @@ sudo make install
|
|||||||
sudo make installcheck
|
sudo make installcheck
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Linking to your program
|
||||||
|
|
||||||
|
The `make install` command takes care of installing the QMCkl shared library on the user machine.
|
||||||
|
Once installed, add `-lqmckl` to the list of compiler options.
|
||||||
|
|
||||||
|
In some cases (e.g. when using custom `prefix` during configuration), the QMCkl library might end up installed in a directory, which is absent in the default `$LIBRARY_PATH`.
|
||||||
|
In order to link the program against QMCkl, the search paths can be modified as follows:
|
||||||
|
|
||||||
|
`export LIBRARY_PATH=$LIBRARY_PATH:<path_to_qmckl>/lib`
|
||||||
|
|
||||||
|
(same holds for `$LD_LIBRARY_PATH`). The `<path_to_qmckl>` has to be replaced with the prefix used during the installation.
|
||||||
|
|
||||||
|
If your project relies on the CMake build system, feel free to use the
|
||||||
|
[FindQMCKL.cmake](https://github.com/TREX-CoE/qmckl/blob/master/cmake/FindQMCKL.cmake)
|
||||||
|
module to find and link the QMCkl library automatically.
|
||||||
|
|
||||||
|
|
||||||
## Verificarlo CI
|
## Verificarlo CI
|
||||||
|
|
||||||
Since Verificarlo should not be a dependency of QMCkl, all Verificarlo
|
Since Verificarlo should not be a dependency of QMCkl, all Verificarlo
|
||||||
|
Loading…
Reference in New Issue
Block a user