Can you please additionally wrap lines 15-19 in the following test:

    if(CATKIN_ENABLE_TESTING)
      # lines 15 - 19
    endif()