fixes for python on linux

Former-commit-id: 9f467b8009
This commit is contained in:
Daniele Panozzo
2015-10-06 15:48:55 +02:00
parent 72a1320403
commit c861e80a05
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -89,6 +89,8 @@ if (OPENGL_FOUND)
include_directories("../external/nanogui/ext/nanovg/src")
list(APPEND SHARED_LIBRARIES "nanogui" ${OPENGL_LIBRARIES})
list(APPEND SHARED_SOURCES "py_igl_viewer.cpp")
endif (OPENGL_FOUND)
# include comiso if available
@@ -148,7 +150,6 @@ add_library(igl SHARED
py_vector.cpp
py_igl.cpp
py_doc.cpp
py_igl_viewer.cpp
${SHARED_SOURCES}
)
+7
View File
@@ -5,7 +5,10 @@
extern void python_export_vector(py::module &);
extern void python_export_igl(py::module &);
#ifdef PY_VIEWER
extern void python_export_igl_viewer(py::module &);
#endif
#ifdef PY_COMISO
extern void python_export_igl_comiso(py::module &);
@@ -17,7 +20,11 @@ PYTHON_PLUGIN(igl) {
python_export_vector(m);
python_export_igl(m);
#ifdef PY_VIEWER
python_export_igl_viewer(m);
#endif
#ifdef PY_COMISO
python_export_igl_comiso(m);