mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
python defines
This commit is contained in:
parent
b76e033f8b
commit
a22d279ef7
@ -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"]
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user