Skip to content
Snippets Groups Projects
README.md 1.74 KiB
Newer Older
![Pipeline status](https://gitlab.eclipse.org/eclipse/aidge/aidge_core/badges/main/pipeline.svg?ignore_skipped=true) ![C++ coverage](https://gitlab.eclipse.org/eclipse/aidge/aidge_core/badges/main/coverage.svg?job=coverage:ubuntu_cpp&key_text=C%2B%2B+coverage&key_width=90) ![Python coverage](https://gitlab.eclipse.org/eclipse/aidge/aidge_core/badges/main/coverage.svg?job=coverage:ubuntu_python&key_text=Python+coverage&key_width=100)

Cyril Moineau's avatar
Cyril Moineau committed
# Aidge Core library
Cyril Moineau's avatar
Cyril Moineau committed

Cyril Moineau's avatar
Cyril Moineau committed
You can find here the C++ code of the Core library of Aidge.
Cyril Moineau's avatar
Cyril Moineau committed

Thibault Allenet's avatar
Thibault Allenet committed
## Pip installation
Cyril Moineau's avatar
Cyril Moineau committed

Thibault Allenet's avatar
Thibault Allenet committed
To install aidge_core using pip, make sure to set the desired install path :
``` bash 
export AIDGE_INSTALL = '<path_to_aidge>/install'
```
Cyril Moineau's avatar
Cyril Moineau committed

Thibault Allenet's avatar
Thibault Allenet committed
Then run in your python environnement :
``` bash
pip install . -v
```
Cyril Moineau's avatar
Cyril Moineau committed

Thibault Allenet's avatar
Thibault Allenet committed
## Standard C++ Compilation

Create two directories ``build`` and ``ìnstall``.
Cyril Moineau's avatar
Cyril Moineau committed

Then **inside** ``build`` :

```bash

cmake -DCMAKE_INSTALL_PREFIX:PATH=$(path_to_install_folder) $(CMAKE PARAMETERS) $(projet_root)

make all install
Cyril Moineau's avatar
Cyril Moineau committed

Cyril Moineau's avatar
Cyril Moineau committed
```


**Compilation options**


|   Option   | Value type | Description |
|:----------:|:----------:|:-----------:|
| *-DCMAKE_INSTALL_PREFIX:PATH* | ``str``  | Path to the install folder |
| *-DCMAKE_BUILD_TYPE*          | ``str``  | If ``Debug``, compile in debug mode, ``Release`` compile with highest optimisations, default= ``Release`` |
| *-DWERROR*                    | ``bool`` | If ``ON`` show warning as error during compilation phase, default=``OFF`` |
| *-DPYBIND*                    | ``bool`` | If ``ON`` activate python binding, default=``ON`` |

If you have compiled with PyBind you can find at the root of the ``build`` file the python lib ``aidge_core.cpython*.so``

## Run tests

### CPP

Inside of the build file run:

```bash

ctest --output-on-failure

Cyril Moineau's avatar
Cyril Moineau committed
```
Cyril Moineau's avatar
Cyril Moineau committed