Ask Your Question
0

Integrating cmake into qmake build process in QtCreator

asked 2016-01-20 04:07:29 -0600

ROSTroy gravatar image

Hi.

I already have a large (working) Qt program, where I want to use ROS functionalities now, too.

Therefore, I would like to keep the qmake build process.

So, everything is setup in QtCreator: On the one hand, I can build my (large) Qt program with qmake and on the other hand I can build another (test) Qt ROS program with cmake...

But how do I combine these build processes? How do I integrate (an additional) cmake into my qmake build process? Do I have to migrate everything to cmake? Or is it possible to use qmake and cmake? Or is it possible to compile some parts seperately with cmake while others are compiled with qmake? (I am not so experienced with build processes, btw) Or is catkin_make another "option"?

All in all, I am looking for a convenient way to keep qmake and add "something" to build and link ROS dependent cpp files.

Thanks for your help.


Ubuntu 14.04 LTS | Qt 5.4.1 | ROS Indigo | IDE: QtCreator

edit retag flag offensive close merge delete

Comments

catkin_make uses cmake, so the CMakeLists.txt file used by catkin_make could call the qmake process using a special cmake command. And there would have to be special cmake commands if you have dependencies in cmake on the output of the qmake process...

lucasw gravatar imagelucasw ( 2016-01-20 12:48:41 -0600 )edit

Most of what you need to learn isn't ros specific, so going out and searching for 'build qmake from cmake', looking on stackoverflow could be more fruitful than here.

lucasw gravatar imagelucasw ( 2016-01-20 12:51:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-21 03:26:41 -0600

ROSTroy gravatar image

Thank you for your answer.

So you think the way to go is: using cmake (/catkin_make), adding some special cmake commands to build also qmake... (I will look at stackoverflow or somewhere)

I thought that there are probably some other (ROS specific) possibilities to combine qmake and cmake. Obviously someone created the Qt templates with "catkin_create_qt_pkg", where qt_build "provides the qt cmake glue" [qt_ros/qt_build]. This is what I found so far... I am looking more into that but could not find the script which actually glues cmake with the qmake *.pro-file or something...

Thus, I will take a look at "build qmake from cmake" but if someone has other options I would be glad to hear them, too.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-01-20 04:07:29 -0600

Seen: 1,073 times

Last updated: Jan 21 '16