Fix selection_io

This commit is contained in:
Maxime Gimeno 2017-03-22 14:37:03 +01:00
parent 8ef8605251
commit fe6aa1993a
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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 <QtPlugin>
//Q_EXPORT_PLUGIN2(Polyhedron_demo_selection_io_plugin, Polyhedron_demo_selection_io_plugin)
#include "Selection_io_plugin.moc"