Anders Logg wrote:
> How does one build an application against DOLFIN with scons?
>
> Before, we had a (very simple) Makefile in each demo directory such
> that the demos could be rebuilt individually and someone wanting to
> write an application could just copy the Makefile somewhere else.
>
> So, could we add a (very very simple) example somewhere that could be
> used as a template?
>
>   
This is how it's done in Unicorn:

SConstruct:
---

env = Environment()
env.ParseConfig('pkg-config --cflags --libs dolfin')
env.ParseConfig('pkg-config --cflags --libs unicorn')

env.Program('demo', ['main.cpp'])

---

It should just work by removing the Unicorn line?

  Johan

_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to