Update project tree of ROS package in QT creator

asked 2018-11-15 04:23:56 -0600

max11gen gravatar image

updated 2018-11-15 05:12:56 -0600

I'm using QT creator to edit my ROS package. However, when I want to create a new source file within my package using

roscd my_package
cd src
touch newFile.cpp

in my Terminal and then in QT-creator I add the following lines to my CMakeLists.txt

add_executable(newExec src/newFile.cpp)
target_link_libraries(newExec ${catkin_LIBRARIES})
add_dependencies(newExec my_package_generate_messages_cpp)

and hit the "Build Now"-button, the project-tree is not updated even though it should. The only way, that I can make the file show up is by shutting down qtcreator and reopen it. How can I have this done more conveniently (/what am I doing wrong)?

edit retag flag offensive close merge delete

Comments

Just a thought, if you create the file in QT-creator it will probably fit into its work flow better.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-11-15 05:16:03 -0600 )edit

This question / issue might be solved now, the ros-qtc-plugin has gone through quite some improvements over the past year.

Mbuijs gravatar imageMbuijs ( 2019-10-21 05:59:39 -0600 )edit