python defines

This commit is contained in:
Joachim Schoeberl 2014-08-31 13:05:24 +00:00
parent b76e033f8b
commit a22d279ef7
3 changed files with 9 additions and 2 deletions

View File

@ -155,7 +155,7 @@ pythonon=false
AC_ARG_ENABLE([python],
[AS_HELP_STRING([--enable-python],[link boost python, necessary for ngsolve])],
[if test "$enableval" = yes; then pythonon=true; else pythonon=false; fi]
[CXXFLAGS+=" $PYTHON_CPPFLAGS -DNGPYTHON"]
[CXXFLAGS+=" $PYTHON_CPPFLAGS -DNG_PYTHON"]
[LDFLAGS+=" $PYTHON_LDFLAGS -l$BOOST_PYTHON_LIB"]
)

View File

@ -1,5 +1,6 @@
#include <boost/python.hpp>
#ifdef NG_PYTHON
#include <boost/python.hpp>
#include <csg.hpp>
@ -92,4 +93,5 @@ BOOST_PYTHON_MODULE(libcsg) {
}
#endif

View File

@ -1,3 +1,5 @@
#ifdef NG_PYTHON
#include <boost/python.hpp>
#include <boost/python/slice.hpp>
@ -165,5 +167,8 @@ BOOST_PYTHON_MODULE(libmesh) {
#endif