robotology-legacy / codyco-superbuild

Software repository for FP7 project CoDyCo - Whole-body Compliant Dynamical Contacts in Cognitive Humanoids - http://www.codyco.eu
13 stars 17 forks source link

superbuild and Qt Creator #37

Closed andreadelprete closed 10 years ago

andreadelprete commented 10 years ago

I'm trying to use Qt Creator with the superbuild and I think I'm almost there, but not quite yet.

First I tried giving to Qt Creator the CMakeList.txt of codyco-modules, but that didn't work because it cannot find iDynTree (and also other things I guess).

Then I tried using the CMakeList.txt of codyco-superbuild, and that worked, meaning that I managed to compile everything with Qt Creator in a new build directory. The problem is that my Qt Creator project doesn't contain any cpp/h file, so it is quite useless.

Is anybody aware of a way to make this work?

traversaro commented 10 years ago

The trick is to load the project that you want to edit, and then select as build directory the build directory that the projects uses in the superbuild, for example build/main/codyco-modules. It is still handy to load also the codyco-superbuild project if you modify the dependencies of the project and you want to recompile all the superbuild.

andreadelprete commented 10 years ago

That worked perfectly, thanks!

drdanz commented 10 years ago

It would be very nice if someone could add something in YCM documentation...