Build test with gtest, correctly

This commit is contained in:
Eryn Wells 2013-09-13 11:09:20 -07:00
parent e8a6099158
commit a5fd16e5b3
2 changed files with 9 additions and 2 deletions

View file

@ -7,10 +7,16 @@
Import('env')
Import('gtest')
Import('gtest_include_dir')
Import('charles_lib')
files = Split("""
test_basics.cc
test_charles.cc
""")
prog = env.Program('test_charles', [gtest, charles, files])
test_env = env.Clone()
test_env.Append(CPPPATH=[gtest_include_dir])
test_env.Append(CPPDEFINES='GTEST_USE_OWN_TR1_TUPLE')
prog = test_env.Program('test_charles', [gtest, charles_lib, files])
env.Alias('test', prog)