[CMake] CMake/Ninja support in Qt Creator

Loaden loaden at gmail.com
Sat Sep 22 02:30:47 EDT 2012


Works well under Ubuntu 12.04 + Ninja 1.0.
Thanks a lot!

2012/9/20 Peter Kümmel <syntheticpp at gmx.net>

> On 19.09.2012 08:08, Wouter van Kleunen wrote:
>
>>
>> Peter,
>>
>> i had 2.8.9-pre3 before, i upgraded to 2.8.9. But only after deleting
>> the CMakeLists user file from qtcreator, deleting the build directory
>> and restarting qtcreator I was able to get the option to build with Ninja.
>>
>> Anyway, it seems to work fine now, and the building is much faster.
>>
>
> I've uploaded a new version:
>
> - Now out-of-source project files are supported (for cmake projects).
>   There will be two new files in the build folder CMake.qtcreator and
> CMakeLists.txt.user
>   CMake.qtcreator should be opened with creator.
>
> - out-of-source is default, could be changed by a check box in the wizard
>
> - shipped ninja.exe (>1.0.0) is found automatically
>
> - generators are updated when cmake is selected in the wizard
>
> - a cmake warning about QT_QMAKE_EXECUTABLE could be suppressed when the
> project doesn't use Qt
>
> Peter
>
>
>
>>
>> Wouter
>>
>>
>> Op 18-9-2012 22:50, Peter Kümmel schreef:
>>
>>> Hi Wouter,
>>>
>>> you need the latest cmake version, 2.8.9.
>>>
>>> Under Tools/Options/Build&Run/CMake
>>> the ninja binary could be set, or have it PATH.
>>>
>>> Peter
>>>
>>> On 18.09.2012 22:29, Wouter van Kleunen wrote:
>>>
>>>>
>>>> So how do you make it to use ninja ? Should I enable ninja somewhere ?
>>>> Because when I run cmake from the gui it now still generates nmakefiles.
>>>>
>>>> Wouter
>>>>
>>>> Op 17-9-2012 18:08, Peter Kümmel schreef:
>>>>
>>>>> Qt Creator 2.6 is beta now.
>>>>>
>>>>> On github I've uploaded a patched version with Ninja support for CMake
>>>>> based projects:
>>>>>
>>>>>       https://github.com/**syntheticpp/qt-creator/**downloads<https://github.com/syntheticpp/qt-creator/downloads>
>>>>>
>>>>> When CDB is installed
>>>>>
>>>>> http://doc-snapshot.qt-**project.org/qtcreator-2.5/**
>>>>> creator-debugger-engines.html#**supported-cdb-versions<http://doc-snapshot.qt-project.org/qtcreator-2.5/creator-debugger-engines.html#supported-cdb-versions>
>>>>>
>>>>>
>>>>> debugging works even with the 32bit/64bit compilers of Visual Studio
>>>>> Express 2012.
>>>>>
>>>>>
>>>>> Currently I'm trying to bring the patches upstream, but for 2.6 it
>>>>> seems too late.
>>>>>
>>>>> Peter
>>>>> --
>>>>>
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/**opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>>>>>
>>>>> Please keep messages on-topic and check the CMake FAQ at:
>>>>> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>>>>>
>>>>
>>>>
>>>>
>>
>>  --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>



-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120922/db2fd40c/attachment.htm>


More information about the CMake mailing list