Update project tree of ROS package in QT creator
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)?
Just a thought, if you create the file in QT-creator it will probably fit into its work flow better.
This question / issue might be solved now, the ros-qtc-plugin has gone through quite some improvements over the past year.