This only works when the exposed variables follow the recommended schema. If the package has different variables the libraries and include paths must be passed explicitly to `catkin_package(INCLUDE ... LIBRARIES ...)`.