# How to determine the CMake VTK "COMPONENTS" necessary for a class?

**URL:** https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429
**Category:** Development
**Created:** [May 10, 2023, 4:29pm UTC](https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429 "2023-05-10T16:29:24Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![fghoussen](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/ecd19e/32.png) [@fghoussen](https://discourse.vtk.org/u/fghoussen)
#### Post date: [May 24, 2023, 5:54pm UTC](https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429/9 "2023-05-24T17:54:45Z")

</div>

> [@Christos\_Tsolakis](#):
>
> ples website that creates

`python3 "$VTK_ROOT/Utilities/Maintenance/FindNeededModules.py" -j $VTK_ROOT/build/modules.json -s vtkHelloworld.cpp` worked for me: [VTK-9: How to know which VTK COMPONENT contains which VTK class?](https://discourse.vtk.org/t/vtk-9-how-to-know-which-vtk-component-contains-which-vtk-class/11533).

Not sure what is the recommended way to go

---

_[View the full topic](https://discourse.vtk.org/t/how-to-determine-the-cmake-vtk-components-necessary-for-a-class/11429)._
