forstio/test/SConscript

19 lines
459 B
Python
Raw Normal View History

2020-07-27 17:13:05 +02:00
#!/usr/bin/env python3
import os
import os.path
import glob
Import('env')
dir_path = Dir('.').abspath
env.test_sources = sorted(glob.glob(dir_path + "/*.cpp"))
env_test = env.Clone()
2021-12-29 19:49:20 +01:00
env_test.Append(CPPDEFINES=['SAW_COMPILE_TEST_BINARY'])
2020-07-27 17:13:05 +02:00
env.test_objects = []
env.test_sources.append(dir_path+'/suite/suite.cpp')
env.test_headers = [dir_path + '/suite/suite.h']
2020-07-27 17:13:05 +02:00
env.test_program = env_test.Program('#build/test', [env.test_sources, env.library_static])