diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/CMakeLists.txt b/Polyhedron/demo/Polyhedron/Plugins/IO/CMakeLists.txt index 971f19775ee..e34ec4d9e59 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/CMakeLists.txt @@ -23,6 +23,8 @@ target_link_libraries(polylines_io_plugin scene_polylines_item) polyhedron_demo_plugin(selection_io_plugin Selection_io_plugin) target_link_libraries(selection_io_plugin scene_polyhedron_selection_item) +polyhedron_demo_plugin(selection_io_sm_plugin Selection_io_plugin) +target_link_libraries(selection_io_sm_plugin scene_surface_mesh_selection_item) polyhedron_demo_plugin(stl_plugin STL_io_plugin) target_link_libraries(stl_plugin scene_polyhedron_item scene_polygon_soup_item) diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/Selection_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/IO/Selection_io_plugin.cpp index 0f983ffc4b1..80929218712 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/Selection_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/Selection_io_plugin.cpp @@ -10,7 +10,12 @@ class Polyhedron_demo_selection_io_plugin : Q_INTERFACES(CGAL::Three::Polyhedron_demo_io_plugin_interface) Q_PLUGIN_METADATA(IID "com.geometryfactory.PolyhedronDemo.PluginInterface/1.0") public: +#ifdef USE_SURFACE_MESH + QString name() const { return "selection_io_sm_plugin"; } +#else QString name() const { return "selection_io_plugin"; } +#endif + QString nameFilters() const { return "Selection files (*.selection.txt)"; } bool canLoad() const { return true; } @@ -38,5 +43,4 @@ public: }; #include -//Q_EXPORT_PLUGIN2(Polyhedron_demo_selection_io_plugin, Polyhedron_demo_selection_io_plugin) #include "Selection_io_plugin.moc"