-## ===============
-## == Link them ==
-## ===============
-
-TARGET_LINK_LIBRARIES(${pfx}BaseObjects ${ITK_LIBRARIES} ${VTK_LIBRARIES})
-TARGET_LINK_LIBRARIES(${pfx}BaseImages ${pfx}BaseObjects)
-TARGET_LINK_LIBRARIES(${pfx}Mesh ${pfx}BaseObjects)
-TARGET_LINK_LIBRARIES(${pfx}Paths ${pfx}BaseObjects ${pfx}BaseImages)
-TARGET_LINK_LIBRARIES(${pfx}Transforms ${pfx}BaseObjects)
-TARGET_LINK_LIBRARIES(${pfx}ScalarImages ${pfx}BaseImages)
-TARGET_LINK_LIBRARIES(${pfx}ColorImages ${pfx}BaseImages)
-TARGET_LINK_LIBRARIES(${pfx}VectorImages ${pfx}BaseImages)
-TARGET_LINK_LIBRARIES(${pfx}MedialnessFilters ${pfx}ScalarImages ${pfx}VectorImages)
-TARGET_LINK_LIBRARIES(${pfx}NeighborhoodIterators ${pfx}ScalarImages)
-TARGET_LINK_LIBRARIES(${pfx}BaseImageFilters ${pfx}ScalarImages ${pfx}ColorImages ${pfx}VectorImages)
-TARGET_LINK_LIBRARIES(${pfx}ImageReaders ${pfx}BaseImageFilters)
-TARGET_LINK_LIBRARIES(${pfx}ImageWriters ${pfx}BaseImageFilters)
-TARGET_LINK_LIBRARIES(${pfx}ScalarImagesFilters ${pfx}BaseImageFilters)
-TARGET_LINK_LIBRARIES(${pfx}CastImageFilters ${pfx}ScalarImagesFilters)
-TARGET_LINK_LIBRARIES(${pfx}BitwiseImageFilters ${pfx}ScalarImagesFilters)
-TARGET_LINK_LIBRARIES(${pfx}ThresholdFilters ${pfx}ScalarImagesFilters)
-TARGET_LINK_LIBRARIES(${pfx}ExtractImageFilters ${pfx}ScalarImagesFilters)
-TARGET_LINK_LIBRARIES(${pfx}DistanceMapFilters ${pfx}ThresholdFilters ${pfx}NeighborhoodIterators)
-TARGET_LINK_LIBRARIES(${pfx}MorphologicalImageFilters ${pfx}ScalarImagesFilters ${pfx}ThresholdFilters)
-TARGET_LINK_LIBRARIES(${pfx}GaussianImageFilters ${cpExtensions_LIB} ${pfx}ScalarImagesFilters ${pfx}VectorImages)
-TARGET_LINK_LIBRARIES(${pfx}ResamplingFilters ${pfx}ScalarImagesFilters ${pfx}Transforms)
-TARGET_LINK_LIBRARIES(${pfx}ImageMeshFilters ${pfx}ScalarImagesFilters ${pfx}Mesh)
+## ===========
+## == Links ==
+## ===========
+SET(_pfx "cpPlugins_")
+TARGET_LINK_LIBRARIES(${_pfx}BaseObjects ${ITK_LIBRARIES})
+TARGET_LINK_LIBRARIES(${_pfx}Images ${_pfx}BaseObjects)
+TARGET_LINK_LIBRARIES(${_pfx}BoundingBoxes ${_pfx}BaseObjects)
+TARGET_LINK_LIBRARIES(${_pfx}Meshes ${_pfx}BoundingBoxes)
+TARGET_LINK_LIBRARIES(${_pfx}ImageIterators ${_pfx}Images)
+TARGET_LINK_LIBRARIES(${_pfx}ImageFilters ${_pfx}Images ${_pfx}ImageIterators)
+TARGET_LINK_LIBRARIES(${_pfx}ImageNeighborhoodIterators ${_pfx}Images)