Using CUDA with catkin - can't generate messages
To add cuda support to a catkin package, I'm using find_package(CUDA REQUIRED)
right after find_package(catkin REQUIRED COMPONENTS ...)
. This works by itself; however, if I call generate_messages(...)
in the same CMakeLists.txt, cmake fails with the following error:
CMake Error at /opt/ros/groovy/share/genmsg/cmake/genmsg-extras.cmake:251 (include):
include called with wrong number of arguments. Include only takes one
file.
Call Stack (most recent call first):
Personal/ros_cuda_test/CMakeLists.txt:37 (generate_messages)
Both find_package(CUDA REQUIRED)
and generate_messages(...)
work in isolation, so it isn't a problem with the messages it's trying to generate.