CLion is my favorite IDE in terms of cmake based projects. For ROS or cmake based c++ projects, you can use clion out of box. If you have an university Email address, you can use CLion for free. Here is the registration link
The explaination of the configuration of clion is coming soon.