link dependent libraries and don't build tests if CATKIN_ENABLE_TESTING is OFF