Revamp build system: build src and test into libs and link to make binaries
This commit is contained in:
parent
926247002b
commit
f81e403b16
3 changed files with 27 additions and 14 deletions
|
@ -8,8 +8,11 @@
|
|||
Import('env')
|
||||
|
||||
files = Split("""
|
||||
|
||||
test_basics.c
|
||||
test_charles.c
|
||||
""")
|
||||
|
||||
test = env.Program('test_charles', files)
|
||||
env.Alias('test', test)
|
||||
test_env = env.Clone()
|
||||
test_env.Append(LIBS=['check'])
|
||||
lib = test_env.Library('test_charles', files, libs=['check'])
|
||||
Return('lib')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue