Thanks, @herbrechtsmeier. Would this work?
````
if (GTEST_FOUND)
  catkin_add_gtest(test_your_node tests/test_your_node.cpp)
  target_link_libraries(test_your_node ${catkin_LIBRARIES})
endif()
````

It seems a little cleaner and easier to read, and it could be wrapped around multiple test declarations.