Don't build test by default only when 'tests' target is specified

This commit is contained in:
Ingo Ruhnke 2011-07-12 01:08:27 +02:00
parent 079cfe6bca
commit 8bd2669875

View file

@ -155,9 +155,9 @@ libxboxdrv = env.StaticLibrary('xboxdrv',
Glob('src/modifier/*.cpp'))
env.Append(LIBS = libxboxdrv)
env.Program('xboxdrv', Glob('src/main/main.cpp'))
for file in Glob('test/*_test.cpp', strings=True):
env.Program(file[:-4], file)
Alias('tests', env.Program(file[:-4], file))
Default(env.Program('xboxdrv', Glob('src/main/main.cpp')))
# EOF #