# Plugin into a single ddl

**URL:** https://discourse.paraview.org/t/plugin-into-a-single-ddl/4551
**Category:** Development
**Created:** [June 10, 2020, 9:13am UTC](https://discourse.paraview.org/t/plugin-into-a-single-ddl/4551 "2020-06-10T09:13:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Bordeu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/felipe_bordeu/32/6143_2.png) [@Felipe\_Bordeu](https://discourse.paraview.org/u/Felipe_Bordeu)
#### Post date: [June 10, 2020, 9:13am UTC](https://discourse.paraview.org/t/plugin-into-a-single-ddl/4551/1 "2020-06-10T09:13:36Z")

</div>

Hi to all,

I’m porting my plugin to paraview 5.8 (last time I compiled the plugin was 5 years ago).  
The plugin is compiled and I can load using my home compiled ParaView (using superbuild) as well as with the precompiled version from [paraview.org](http://paraview.org) (windows version). Using VS2015 x64 on Windows 10.

in my CMakeLists.txt I have something like:

```
....
paraview_add_plugin(PXDMFTools
    REQUIRED_ON_SERVER REQUIRED_ON_CLIENT
    VERSION ${PXDMFTools_VERSION}
    PYTHON_MODULES PxdmfTools.py
    MODULES
    PXDMFTools::AddZeros
    PXDMFTools::AnnotateFieldData
    ...

   MODULE_FILES
    "${CMAKE_CURRENT_SOURCE_DIR}/AddZeros/vtk.module"
    "${CMAKE_CURRENT_SOURCE_DIR}/AnnotateFieldData/vtk.module"
    ...

    UI_INTERFACES ....
    UI_RESOURCES ...
    UI_FILES ...
    SOURCES ...
)
...

```

the problem is that after compilation I have plenty of ddls to distribute, one for every module.  
Can I compile into a single ddl to easy the distribution??

Felipe

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 10, 2020, 9:17am UTC](https://discourse.paraview.org/t/plugin-into-a-single-ddl/4551/2 "2020-06-10T09:17:15Z")

</div>

Use : `FORCE_STATIC`

eg:

```
vtk_module_add_module(ElevationFilters
  FORCE_STATIC # Using FORCE_STATIC build the vtk module statically into the plugin library, to avoid confusion when loading                      
  CLASSES ${classes})
```

---

<div class="post-metadata">

### Author: ![Felipe\_Bordeu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/felipe_bordeu/32/6143_2.png) [@Felipe\_Bordeu](https://discourse.paraview.org/u/Felipe_Bordeu)
#### Post date: [June 10, 2020, 9:28am UTC](https://discourse.paraview.org/t/plugin-into-a-single-ddl/4551/3 "2020-06-10T09:28:30Z")

</div>

Hi, that was fast.

It works, I already test it.

Thanks.  
Felipe
