Revision history [back]

How to use CMAKE_MODULE_PATH in catkin projects?

I want to add a .cmake file to my project which contains many multiple catkin projects. Normally with cmake the way I would do this is set the CMAKE_MODULE_PATH variable to point to a cmake directory and then I could use the cmake command include to include a script from that directory. Is there a good way to go about doing that in a catkin project so that other catkin projects that depend on my project could also use this cmake script?

The context is I am trying to find the right way to go about adding a .cmake file to a project like moveit which contains many different catkin projects and I'd like to only add my file in one place and ideally have it affect all the dependent catkin projects.

 2 None gvdhoorn 62205 ●136 ●619 ●739 http://cor.tudelft.nl/

How to use CMAKE_MODULE_PATH in catkin projects?

I want to add a .cmake file to my project which contains many multiple catkin projects. Normally with cmake the way I would do this is set the CMAKE_MODULE_PATH variable to point to a cmake directory and then I could use the cmake command include to include a script from that directory. Is there a good way to go about doing that in a catkin project so that other catkin projects that depend on my project could also use this cmake script?

The context is I am trying to find the right way to go about adding a .cmake file to a project like moveit which contains many different catkin projects and I'd like to only add my file in one place and ideally have it affect all the dependent catkin projects.