catkin build configuration options
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...