16 |
|
|
17 |
Depends(program, dep_lib) |
Depends(program, dep_lib) |
18 |
|
|
|
# TODO: Need to decide on how the library paths etc are going to be handled |
|
|
# TODO: For now just install the program to the same location as the libraries so things can run at least |
|
|
test_install = local_env.Install(libinstall, program) |
|
|
|
|
19 |
#Add Unit Test to target alias |
#Add Unit Test to target alias |
20 |
|
|
21 |
env.Alias('build_tests', test_install) |
env.Alias('build_tests', program) |
22 |
|
|
23 |
# run the tests - but only if test_targets are stale |
# run the tests - but only if test_targets are stale |
24 |
local_env.RunUnitTest(program_name) |
local_env.RunUnitTest(program_name) |