Build test with gtest, correctly
This commit is contained in:
parent
e8a6099158
commit
a5fd16e5b3
2 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue