create tests target only when not yet existing

This commit is contained in:
Dirk Thomas 2012-12-06 08:56:31 +00:00
parent 4022a36701
commit daab31fa0c
1 changed files with 3 additions and 1 deletions

View File

@ -309,7 +309,9 @@ macro(rosbuild_init)
endif(_test_results_dir_failed) endif(_test_results_dir_failed)
# The 'tests' target builds the test program # The 'tests' target builds the test program
add_custom_target(tests) if(NOT TARGET tests)
add_custom_target(tests)
endif()
# The 'test' target runs all but the future tests # The 'test' target runs all but the future tests
add_custom_target(test) add_custom_target(test)
# We need to build tests before running them. Addition of this # We need to build tests before running them. Addition of this