The license that applies to the whole package content is **GNUGPL**. Please look at the license.txt file at the root of this repository.

Installation and Usage

=======================

The procedures for installing the ethercatcpp-core package and for using its components is based on the [PID](http://pid.lirmm.net/pid-framework/pages/install.html) build and deployment system called PID. Just follow and read the links to understand how to install, use and call its API and/or applications.

The detailed procedures for installing the ethercatcpp-core package and for using its components is based on the [PID](http://pid.lirmm.net/pid-framework/pages/install.html) build and deployment system called PID. Just follow and read the links to understand how to install, use and call its API and/or applications.

For a quick installation:

## Installing the project into an existing PID workspace

To get last version :

```

cd <path to pid workspace>/pid

make deploy package=ethercatcpp-core

```

To get a specific version of the package :

```

cd <path to pid workspace>/pid

make deploy package=ethercatcpp-core version=<version number>

```

## Standalone install

```

git clone https://gite.lirmm.fr/ethercatcpp/ethercatcpp-core.git

cd ethercatcpp-core

```

Then run the adequate install script depending on your system. For instance on linux:

```

sh share/install/standalone_install.sh

```

The pkg-config tool can be used to get all links and compilation flags for the libraries defined inthe project. To let pkg-config know these libraries, read the last output of the install_script and apply the given command. It consists in setting the PKG_CONFIG_PATH, for instance on linux do:

cmake --build.--target build --force=true&&echo"The path $package_root_path/binaries/pid-workspace/pid/share/pkgconfig must be added to your PKG_CONFIG_PATH environment variable. To make the change permanent, write the line \"export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$package_root_path/binaries/pid-workspace/pid/share/pkgconfig\" into your .bashrc file."