exclude declared test programs from the all target

This commit is contained in:
Brian Gerkey 2010-11-11 02:28:22 +00:00
parent 68a7cd30a8
commit fb4d6d9208
1 changed files with 2 additions and 0 deletions

View File

@ -591,6 +591,8 @@ macro(rosbuild_declare_test exe)
add_custom_target(tests)
endif(CMAKE_MINOR_VERSION LESS 6)
add_dependencies(tests ${exe})
# Don't build this target with the all target, #3110
set_target_properties(${exe} PROPERTIES EXCLUDE_FROM_ALL TRUE)
endmacro(rosbuild_declare_test)
# A helper to create test programs. It calls rosbuild_add_executable() to