SConsを使ってscons testでテストを実行するには、
SConstructもしくはSConscriptで以下のように書く
(Google Test仕様)

python>>
import os, sys
Import('env')
env = env.Clone()

test = env.Program('test', Glob('*.cpp'), LIBS='gtest')
test_alias = Alias('test', [test], test[0].abspath)
AlwaysBuild(test_alias)
<<--

See Also

posted by genki genki on Tue 2 Mar 2010 at 07:45 with 0 comments