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

René J.V. Bertin rjvbertin at gmail.com
Fri Apr 15 13:53:45 CEST 2016

On Friday April 15 2016 11:35:26 Hunger Tobias wrote:


>That file will probably work well, as long as you do not end up building one
>source file as part of several targets (e.g. an executable and a test).

If that's the case then KDevelop may already have found a workaround.

>> In the version I have I only see a way to change settings from the cache. But
>> changes made there apparently can get lost.
>Not those you do from inside Creator. Those sometimes did get lost before, too.

I meant making changes via Creator, must have been to an option variable (unused on the commandline).
Are these changes supposed to survive even a clearing of the cmake cache?

>directories can not cover this use case: You want to explicitly import such a
>build directory.

Fair enough!

>You could set up your environment before you start Qt Creator... that way the
>environment will be inherited by all projects.

Of course. But that's something you have to remember, and it's not necessarily trivial on all platforms.


More information about the Qt-creator mailing list