[Qt-creator] Generating QtCreator cmake project for given CMakeLists.txt from command line

René J.V. Bertin rjvbertin at gmail.com
Thu Jun 2 20:21:47 CEST 2016


On Thursday June 02 2016 19:24:51 Konstantin Tokarev wrote:

> The next sequence have worked for me:
> 
> 1. Open CMakeLists.txt
> 2. Choose appropriate Kit from list, or create one if it is missing. Import project
> 3. Go to project settings and switch build directory to the one which has your configured build.

That works but only as long as Creator doesn't judge it necessary to rerun CMake.

It may work better to figure out what additional argument Creator needs (a priori the "Unix Makefiles - CodeBlocks" generator) and then run cmake as you want it in the build directory Creator is supposed to use?

R.



More information about the Qt-creator mailing list