# Dependent extension vtkSlicerMarkupsModuleMRML cannot be found by CMake

**URL:** <https://discourse.slicer.org/t/dependent-extension-vtkslicermarkupsmodulemrml-cannot-be-found-by-cmake/10670>\
**Category:** Development\
**Tags:** extensions-manager\
**Created:** [March 13, 2020, 10:24am UTC](https://discourse.slicer.org/t/dependent-extension-vtkslicermarkupsmodulemrml-cannot-be-found-by-cmake/10670 "2020-03-13T10:24:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiffas](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tiffas](https://discourse.slicer.org/u/Tiffas)\
**Post date:** [March 13, 2020, 10:24am UTC](https://discourse.slicer.org/t/dependent-extension-vtkslicermarkupsmodulemrml-cannot-be-found-by-cmake/10670/1 "2020-03-13T10:24:18Z")

</div>

Hi,

I try to build a loadable module which need a vtkMRMLMarkupsFiducialNode. I have a linker error during the build. I think the problem is related with the following warning:

Dependent extension vtkSlicerMarkupsModuleMRML cannot be found by CMake  
find\_package(), therefore paths variables cannot be imported from this  
extension. The problem can be resolved by generating  
vtkSlicerMarkupsModuleMRMLConfig.cmake by adding  
include(${Slicer\_EXTENSION\_GENERATE\_CONFIG}) to the top-level  
CMakeLists.txt of the dependent extension.

The problem is include(${Slicer\_EXTENSION\_GENERATE\_CONFIG}) is present in the top-level CMakeLists and I cannot find any vtkSlicerMarkupsModuleMRMLConfig.cmake file. Any idea on how to solve it ?

Many thanks !

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [March 15, 2020, 10:35am UTC](https://discourse.slicer.org/t/dependent-extension-vtkslicermarkupsmodulemrml-cannot-be-found-by-cmake/10670/2 "2020-03-15T10:35:51Z")

</div>

In case of a linking problem i think you must add MRMLMarkups library to the CMakeLists.txt where you want to use markup nodes:

For example if you are going to use markups in logic, then in Logic directory CMakeLists.txt

`set(${KIT}_TARGET_LIBRARIES`  
`...`  
` vtkSlicerMarkupsModuleMRML`  
`...`  
` )`
