Don't build test by default only when 'tests' target is specified
This commit is contained in:
parent
079cfe6bca
commit
8bd2669875
1 changed files with 3 additions and 3 deletions
|
@ -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 #
|
||||
|
|
Loading…
Add table
Reference in a new issue