adding install as an argument works, but installing *every* time is also overkill (in my case at least its only needed after updating the source tree).
For MSVC and XCode cmake generated project files there is an install target you can build from the IDE. QtCreators cmake project loaded gives a bunch of targets in the projects make options but 'install' isn't one of them, and I cant find a way to build anything besides "all" & "clean" - without editing the configuration each time at least. Since "clean" is a hard coded make target, why not make "install" hard coded as well?, ...that or better support for cmake files to read the generated targets and allow some access from the UI but this is more work I expect. On Fri, May 20, 2011 at 11:28 AM, shiroki <[email protected]> wrote: > Can't you just configure it in Project->Build Settings->Build > Steps->Make->Details->Make argument? > Try to add "install" into "Make argument". > > Does it do what you want? > > Jing > > On Fri, May 20, 2011 at 11:29 AM, Theo de Vries <[email protected]> > wrote: >> I use QtCreator with CMake-based projects, which typically have multiple >> targets. In the Build Settings page, I can nicely select which targets I >> want to build. >> The problem I have is that I would like to change the base command into >> "make install" instead of "make". The reason is that in that case, libraries >> get installed immediately after being built successfully, before the next >> target is built. >> I have tried to accomplish this by creating a custom command, however, I >> have not succeeded in doing so. For one, you don't have the nice target >> selection option. >> Patching QtCreator is what I tried next. It seems that I should make my own >> BuildStep. However, I don't see how this is to be done. Can someone give me >> some directions? Is there an example somewhere how to do this? >> Regards, Theo. >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.qt.nokia.com/mailman/listinfo/qt-creator >> >> > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > -- - Campbell _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
