ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am not sure about your use case but in CMake you can try to find catkin and then continue based on if it was found or not. Like this:

find_package(catkin)
if(catkin_FOUND)
  ..
else()
  ..
endif()

You can also mix this with a custom option like COMPILE_WITH_CATKIN.

I am not sure about your use case but in CMake you can try to find catkin and then continue based on if it was found or not. Like this:

find_package(catkin)
find_package(catkin)  # not passing REQUIRED
if(catkin_FOUND)
  # maybe call find_package again with COMPONENTS
  ..
else()
  ..
endif()

You can also mix this with a custom option like COMPILE_WITH_CATKIN.