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

catkin build configuration options

asked 2015-12-03 04:16:55 -0500

Tommi gravatar image

updated 2015-12-03 19:33:11 -0500

tfoote gravatar image

Is there a way to define the default behaviour of catkin_make with a .cmake-file or such?

For example, I would need to disable some platform-specific ROS-packages included in a repository. Or, toggle CUDA or some other optional library. The problem I'm facing is that catkin includes all subdirectories in the workspace, so I can't make my own CMake macro which would set(ENABLE_CUDA) or set(BUILD_ANALYSIS_TOOLS), and then add_subdirectory() if this is set.

To give some idea what would be nice to have, OpenCV does its build options very nicely (from line 155): https://github.com/Itseez/opencv/blob...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-12-03 13:45:18 -0500

William gravatar image

OpenCV is a single project so it's not really comparable to a system which builds groups of projects. You can certainly add options to individual CMake projects, but you'd have to pass options to each of them.

As for controlling which packages get built in a catkin workspace, you can use CATKIN_IGNORE files to prevent certain packages from getting processed by catkin_make. Or you can use the CATKIN_BLACKLIST_PACKAGES variable to blacklist certain packages, see: http://answers.ros.org/question/54181...

You get more control with the upcoming tools provided by the catkin_tools project, but it's got some problems that we're still working out before it's ready for prime time:

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-12-03 04:16:55 -0500

Seen: 1,214 times

Last updated: Dec 03 '15