# Compilation

## Plug-in  SDK Compilation

### Source Code

```
git clone https://github.com/learn-safran-navigation-timing/skydel-plug-ins
```

### Qt Creator

In Qt Creator, open the **CMakeLists.txt** file from the root folder:

{% tabs %}
{% tab title="Ubuntu" %}

<figure><img src="https://311694143-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_Pt37t64EODlZCwBV%2Fuploads%2Fo1uwROp7ErvubCCSKtaS%2Fimage.png?alt=media&#x26;token=ee5583c9-3914-42b9-aab1-2d570ee342fe" alt=""><figcaption></figcaption></figure>

<figure><img src="https://311694143-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_Pt37t64EODlZCwBV%2Fuploads%2FtZsjZaw6t0pQZDl9RmC6%2Fimage.png?alt=media&#x26;token=3e9e4423-cfb7-401a-bb2c-881975c5f298" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Windows" %}

<figure><img src="https://311694143-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_Pt37t64EODlZCwBV%2Fuploads%2Fmn4Ro3evXF8YJhphBR9M%2Fimage.png?alt=media&#x26;token=9fa7a550-ac26-4fe1-a73b-33640b77d51d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://311694143-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MW_Pt37t64EODlZCwBV%2Fuploads%2FdfcZDAke4iAWSWQfr2IS%2Fimage.png?alt=media&#x26;token=b4e2f892-3bf2-43c2-b961-4b2aa0edfc2c" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### Command Line

{% tabs %}
{% tab title="Ubuntu" %}

```
mkdir build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
sudo cmake --install .
```

{% endtab %}

{% tab title="Windows" %}
{% code title="From an elevated Command Prompt" %}

```
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
cmake --install .
```

{% endcode %}
{% endtab %}
{% endtabs %}

#### Additional CMake Arguments

<table><thead><tr><th width="226.49302936102077">Argument</th><th>Description</th><th width="150">Default Value</th></tr></thead><tbody><tr><td><code>CMAKE_INSTALL_PREFIX</code></td><td>Destination folder of the Plug-ins SDK</td><td>-</td></tr><tr><td><code>PLUGIN_INSTALL_DIR</code></td><td>Destination folder of the examples</td><td><em>$HOME/Documents/Skydel-SDX/Plug-ins</em></td></tr></tbody></table>

## Plug-in Examples Compilation

### Source Code

```
git clone https://github.com/learn-safran-navigation-timing/skydel-example-plugins
```

### Compilation

See [#plug-in-sdk-compilation](#plug-in-sdk-compilation "mention").

The compiled plugin examples will be located in your *build folder / source / plugin-name* as a *.so* or *.dll* file.

## Using the SDK in an Other CMake Project

After installing the SDK, It can be imported into your own CMake project by adding the following lines in your CMakeLists:

```
find_package(SkydelPlugin)
target_link_libraries(MyPlugin PUBLIC Skydel::SkydelPlugin)
```
