[Qt-creator] Have Locate... provide all files in a CMake project

Michael Jackson imikejackson at gmail.com
Sat Jan 10 15:40:10 CET 2015


On Jan 10, 2015, at 3:54 AM, Andreas Pakulat <apaku at gmx.de> wrote:

> Hi Michael,
> 
> On Fri, Jan 9, 2015 at 11:07 PM, Michael Jackson <imikejackson at gmail.com> wrote:
> 
> On Jan 9, 2015, at 2:20 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> 
>> Also, I think part of QtCreator's problems with CMake files is that QtCreator only considers the top level code blocks file that is generated. There are other code block files within the build tree that fully describe all the files for a project, include paths, compiler invocations and things like that. This is leading to other problems with include paths not being found (See bug reports).
>> 
>> Really? My cmake 3.1 generated just 1 cbp file at the top, that contains all kinds of information. Including several targets with include-dirs per target and a long list of source files and headers. This is on Linux with the CodeBlocks+Ninja generator.
> 
> 
> This is from the top level of my build directory on OS X. I'll have to check when I get back to my Linux machine. This is with CMake 3.1.0.
> 
> 503:[mjackson at ferb:Build]$ find . -type f -name "*.cbp"
> ./Applications/DREAM3D/DREAM3D.cbp
> ./Applications/PluginMaker/PluginMaker.cbp
> 
> Ah, let me guess, each of these directories has a CMakeLists.txt in the source tree with a project() command in it? I don't have a project that complicated luckily :) There's only a single project command in the whole cmake tree.
> 
> Andreas

Actually, 
 You are correct. I did not think of that. This would explain a few things and how the Creator developers may have missed this as they probably test with fairly simple CMake projects. Wish I had the time to dig into the source of Creator to patch it up a bit. I think this would definitely improve the CMake import/support in Creator.

Our current project massages this issue so badly that most of our code will not auto-complete any more. I have tried rearranging our entire project setup, tweaking cmake files and a few other ideas (generate generic projects, generate QBS JSON files from CMake) but in the end we are all switching to Visual Studio 2013 @$500 per developer. We have nightly builds for all the platforms so we will rely on those to tell us if we do something that does not compile on other platforms.

Mike Jackson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150110/8827e7cb/attachment.html>


More information about the Qt-creator mailing list