-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
30 lines (24 loc) · 965 Bytes
/
SConstruct
File metadata and controls
30 lines (24 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
env = Environment()
env['CPPPATH'] = [ './inc',
'./depends/tetra-meta/inc',
'./depends/tetra-message/inc' ]
env['LIBPATH'] = [ './bin',
'./depends/tetra-meta/bin',
'./depends/tetra-message/bin' ]
env['LIBS'] = [ 'tetraMeta', 'tetraMessage' ]
env['CXX'] = 'clang++';
env['CXXFLAGS'] = [ '-std=c++11', '-ggdb' ]
buildLib = env.Library('./bin/tetraFramework', Glob('src/*/*/*.cpp'))
env['CPPPATH'] += ['./tst']
env['LIBS'] += [ 'tetraFramework' ]
buildTests = env.Program('./bin/catchTests.out',
Glob('tst/*.cpp') +
Glob('tst/test/*.cpp') +
Glob('tst/*/*/*.cpp'));
Depends(buildTests, buildLib)
runTests = Command( target = "runTests"
, source = "./bin/catchTests.out"
, action = [ "./bin/catchTests.out" ]
)
Depends(runTests, buildTests)
Default(runTests)