include( polyhedron_demo_macros )
 qt5_wrap_ui( clip_polyhedronUI_FILES Clip_polyhedron_plugin.ui )
 polyhedron_demo_plugin(clip_polyhedron_plugin Clip_polyhedron_plugin ${clip_polyhedronUI_FILES})
 target_link_libraries(clip_polyhedron_plugin PUBLIC scene_surface_mesh_item scene_polyhedron_item scene_basic_objects)

 polyhedron_demo_plugin(point_set_from_vertices_plugin Point_set_from_vertices_plugin)
 target_link_libraries(point_set_from_vertices_plugin PUBLIC scene_polyhedron_item scene_surface_mesh_item scene_polygon_soup_item scene_points_with_normal_item)

 polyhedron_demo_plugin(surface_mesh_to_polyhedron_plugin Surface_mesh_to_polyhedron_plugin)
 target_link_libraries(surface_mesh_to_polyhedron_plugin PUBLIC scene_polyhedron_item scene_surface_mesh_item)

 if( METIS_FOUND )  
   qt5_wrap_ui( partitionUI_FILES PartitionDialog.ui )
  polyhedron_demo_plugin(partition_poly_plugin Partition_graph_plugin ${partitionUI_FILES})
  target_link_libraries(partition_poly_plugin PUBLIC  scene_polyhedron_item ${METIS_LIBRARIES} )
  polyhedron_demo_plugin(partition_sm_plugin Partition_graph_plugin ${partitionUI_FILES})
  target_link_libraries(partition_sm_plugin PUBLIC scene_surface_mesh_item ${METIS_LIBRARIES} )
  target_compile_definitions(partition_sm_plugin PUBLIC "-DCGAL_USE_SURFACE_MESH" )
else()
  message("NOTICE : the Partition plugin needs METIS libraries and will not be compiled.")
endif()
