ros-integrate
ros-integrate copied to clipboard
Auto-configuring CMake build and devel paths
Feature: Automatically configuring CMake build path and devel prefix for catkin_tools compatibility.
Background When developing with catkin_tools and CLion, each package needs to be opened individually and the CMake build path + devel space needs to be manually set.
Details It would be nice to have a "Open ROS Package" option which automatically sets the paths according to this stackoverflow answer. Unfortunately, I am not familiar with IntelliJ Plugin development, elsewise I would have helped you. What I am familiar with is how to obtain these paths:
-
Set
$package_name
by parsing the package.yaml file ("name") -
Obtain the CMake options by using
catkin locate
:-DCATKIN_DEVEL_PREFIX:PATH=$(catkin locate)/devel/.private/$package_name
-
Obtain the build directory as
$(catkin locate)/build/$package_name
Hi @jukindle ,
While the plugin already detects (and locates) all ROS packages in the workspace as well as the location of the workspace itself (as of issue #56), implementing this feature requires CLion specific integration (specifically, with its CMake interface). I do plan on implementing this, but the plugin doesn't know how to work with CLion specific features yet.