If Slicer already builds your custom modules then you must not build your modules as an extension, because it would want to add the same targets that you already have in your Slicer build. Just run make in the appropriate folder to build Slicer, including your modules.
1 Like