~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to sandbox/ilmarw/test/SConstruct

  • Committer: Ilmar Wilbers
  • Date: 2008-05-23 10:52:27 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: ilmarw@simula.no-20080523105227-vctvs79hp30m47se
Added test to sandbox/ilmarw.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is an example of a simple SConstruct file for building
 
2
# programs against DOLFIN. To build this demo, just type 'scons'.
 
3
 
 
4
import os, commands
 
5
 
 
6
# Get compiler from pkg-config
 
7
compiler = commands.getoutput('pkg-config --variable=compiler dolfin')
 
8
 
 
9
# Create a SCons Environment based on the main os environment
 
10
env = Environment(ENV=os.environ, CXX=compiler)
 
11
 
 
12
# Get compiler flags from pkg-config
 
13
env.ParseConfig('pkg-config --cflags --libs dolfin')
 
14
 
 
15
# Program name
 
16
env.Program('demo', 'main.cpp')