# Build ITK with itk\_vtk\_glue

**URL:** https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521
**Category:** Beginner Questions
**Tags:** build-itkvtk\_glue
**Created:** [December 12, 2019, 5:01pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521 "2019-12-12T17:01:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![machadoL](https://discourse.itk.org/user_avatar/discourse.itk.org/machadol/32/662_2.png) [@machadoL](https://discourse.itk.org/u/machadoL)
#### Post date: [December 12, 2019, 5:01pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/1 "2019-12-12T17:01:44Z")

</div>

Guys a very beginner question.  
I’ve tried to build ITK pointing it to VTK\_build, but no success so far.  
I’ve done that before, but do not remember and cannot find it elsewhere…

Thanks!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [December 12, 2019, 5:04pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/2 "2019-12-12T17:04:11Z")

</div>

More details are required, including the error message.

---

<div class="post-metadata">

### Author: ![machadoL](https://discourse.itk.org/user_avatar/discourse.itk.org/machadol/32/662_2.png) [@machadoL](https://discourse.itk.org/u/machadoL)
#### Post date: [December 12, 2019, 5:24pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/3 "2019-12-12T17:24:23Z")

</div>

Initially, I build VTK. Everything goes ok…  
Then I configure and generate ITK with the variable `Module_ITKVtkGlue` set as `ON`.  
And then Build. Everything sounds OK.

Then I try to configure and generate an ITK project through CMAKE-GUI, set ITK\_DIR,  
but it says:

```
Could not find a package configuration file provided by "ItkVtkGlue" with
  any of the following names:

ItkVtkGlueConfig.cmake
itkvtkglue-config.cmake

Add the installation prefix of "ItkVtkGlue" to CMAKE_PREFIX_PATH or set
"ItkVtkGlue_DIR" to a directory containing one of the above files. If
"ItkVtkGlue" provides a separate development package or SDK, be sure it has
been installed.

```

That is it?

---

<div class="post-metadata">

### Author: ![machadoL](https://discourse.itk.org/user_avatar/discourse.itk.org/machadol/32/662_2.png) [@machadoL](https://discourse.itk.org/u/machadoL)
#### Post date: [December 12, 2019, 5:35pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/4 "2019-12-12T17:35:12Z")

</div>

Naturally, in my CmakeLists.txt I call `ItkVtkGlue`!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [December 12, 2019, 6:11pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/5 "2019-12-12T18:11:33Z")

</div>

In that case ITKVTKGlue is just a normal module, you don’t need to “call it” from CMakeLists.txt, just as you wouldn’t do it for ITKCommon or ITKSmoothing.

---

<div class="post-metadata">

### Author: ![machadoL](https://discourse.itk.org/user_avatar/discourse.itk.org/machadol/32/662_2.png) [@machadoL](https://discourse.itk.org/u/machadoL)
#### Post date: [December 12, 2019, 6:32pm UTC](https://discourse.itk.org/t/build-itk-with-itk-vtk-glue/2521/6 "2019-12-12T18:32:57Z")

</div>

You mean that I don’t really need to call:

```
  find_package(ItkVtkGlue REQUIRED)
  include(${ItkVtkGlue_USE_FILE})
  set(Glue ItkVtkGlue)

```

in my `CMakeLists.txt` file, even if I call it in my `.cpp` main file?!
