[CMake] CMake/Ninja support in Qt Creator

2012-09-17 Thread Peter Kümmel

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

When CDB is installed


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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-18 Thread Nils Gladitz

Awesome!

I was really looking forward to this:
https://bugreports.qt-project.org/browse/QTCREATORBUG-7720

Thank you!

Nils


On 09/17/2012 06:08 PM, Peter Kümmel wrote:

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

When CDB is installed

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


Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ


Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



--
Nils Gladitz, B.Sc.
DICOM, Konnektivität und Entwicklung

Scivis wissenschaftliche Bildverarbeitung GmbH
Bertha-von-Suttner-Str. 5
D-37085 Göttingen
GERMANY
Handelsregister Nr. / Trade Register No. B3100 Göttingen
Geschäftsführer / Managing Directors Dr. Gernot Ebel, Dr. Uwe Engeland

Tel: 0049 (0)551 634181-28
E-Mail: glad...@scivis.de
Web: www.scivis.de

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-18 Thread Wouter van Kleunen


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.


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

When CDB is installed

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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-19 Thread Peter Kümmel

Yes, starting from scratch helps in most cases. But with cmake
we are used to simply clean the build dir, which doesn't help here.

It is a problem that creator's .user file is stored beside
the CMakeLists.txt: you can't check it in because of absolute paths,
a clean of the repository removes it, a buggy setup
is remember by creator, and it violates the principle
"don't touch the the source". I told them, but they don't care.

Peter



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.


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

When CDB is installed

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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-19 Thread Wouter van Kleunen

Peter,

I guess removing just the build directory also seems to work.

I agree with your objections of the location the user file, the source
directory should stay clean. An inattentive moment and you have the file
in your version control.

Anyway, it seems to build now using an older version of ninja. However
when I use the 1.0.0 version of ninja, I get the following error:

ninja: FATAL: unknown placeholder '%o' in $NINJA_STATUS

With the ninja downloaded from here:
https://github.com/martine/ninja/downloads

Wouter

> Yes, starting from scratch helps in most cases. But with cmake
> we are used to simply clean the build dir, which doesn't help here.
>
> It is a problem that creator's .user file is stored beside
> the CMakeLists.txt: you can't check it in because of absolute paths,
> a clean of the repository removes it, a buggy setup
> is remember by creator, and it violates the principle
> "don't touch the the source". I told them, but they don't care.
>
> Peter
>
>
>
> 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.
>>
>>
>> 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
>
> When CDB is installed
>
> 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
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> 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
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> 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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-19 Thread Peter Kümmel

On 19.09.2012 09:48, Wouter van Kleunen wrote:


Peter,

I guess removing just the build directory also seems to work.

I agree with your objections of the location the user file, the source
directory should stay clean. An inattentive moment and you have the file
in your version control.

Anyway, it seems to build now using an older version of ninja. However
when I use the 1.0.0 version of ninja, I get the following error:

ninja: FATAL: unknown placeholder '%o' in $NINJA_STATUS


This is needed for printing the compile rate: have a look at
"Compile Output", there you can see the compiled files per second rate.



With the ninja downloaded from here:
https://github.com/martine/ninja/downloads


This is not a 1.0.0 build, it needs -V for printing the version, which is pre 
1.0.
And even 1.0.0 has an ugly bug. Please select the ninja in the bin dir.
I've also uploaded a ninja binary on github.

Peter




Wouter


Yes, starting from scratch helps in most cases. But with cmake
we are used to simply clean the build dir, which doesn't help here.

It is a problem that creator's .user file is stored beside
the CMakeLists.txt: you can't check it in because of absolute paths,
a clean of the repository removes it, a buggy setup
is remember by creator, and it violates the principle
"don't touch the the source". I told them, but they don't care.

Peter



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.


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

When CDB is installed

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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-19 Thread Wouter van Kleunen

Peter,

yes I figured it would be something like that, compilations per seconds.
But did the ninja developers remove this option ?

I tried the ninja version you uploaded to github and this also works fine.

Wouter

> On 19.09.2012 09:48, Wouter van Kleunen wrote:
>>
>> Peter,
>>
>> I guess removing just the build directory also seems to work.
>>
>> I agree with your objections of the location the user file, the source
>> directory should stay clean. An inattentive moment and you have the file
>> in your version control.
>>
>> Anyway, it seems to build now using an older version of ninja. However
>> when I use the 1.0.0 version of ninja, I get the following error:
>>
>> ninja: FATAL: unknown placeholder '%o' in $NINJA_STATUS
>
> This is needed for printing the compile rate: have a look at
> "Compile Output", there you can see the compiled files per second rate.
>
>>
>> With the ninja downloaded from here:
>> https://github.com/martine/ninja/downloads
>
> This is not a 1.0.0 build, it needs -V for printing the version, which is
> pre 1.0.
> And even 1.0.0 has an ugly bug. Please select the ninja in the bin dir.
> I've also uploaded a ninja binary on github.
>
> Peter
>
>
>>
>> Wouter
>>
>>> Yes, starting from scratch helps in most cases. But with cmake
>>> we are used to simply clean the build dir, which doesn't help here.
>>>
>>> It is a problem that creator's .user file is stored beside
>>> the CMakeLists.txt: you can't check it in because of absolute paths,
>>> a clean of the repository removes it, a buggy setup
>>> is remember by creator, and it violates the principle
>>> "don't touch the the source". I told them, but they don't care.
>>>
>>> Peter
>>>
>>>
>>>
>>> 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.


 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
>>>
>>> When CDB is installed
>>>
>>> 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
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> 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
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> 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
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> 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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-19 Thread Peter Kümmel

On 19.09.2012 10:19, Wouter van Kleunen wrote:


Peter,

yes I figured it would be something like that, compilations per seconds.
But did the ninja developers remove this option ?


No, I've added it ;), but the official ninja binary is not a 1.0 version,
it's two months old.



I tried the ninja version you uploaded to github and this also works fine.

Wouter


On 19.09.2012 09:48, Wouter van Kleunen wrote:


Peter,

I guess removing just the build directory also seems to work.

I agree with your objections of the location the user file, the source
directory should stay clean. An inattentive moment and you have the file
in your version control.

Anyway, it seems to build now using an older version of ninja. However
when I use the 1.0.0 version of ninja, I get the following error:

ninja: FATAL: unknown placeholder '%o' in $NINJA_STATUS


This is needed for printing the compile rate: have a look at
"Compile Output", there you can see the compiled files per second rate.



With the ninja downloaded from here:
https://github.com/martine/ninja/downloads


This is not a 1.0.0 build, it needs -V for printing the version, which is
pre 1.0.
And even 1.0.0 has an ugly bug. Please select the ninja in the bin dir.
I've also uploaded a ninja binary on github.

Peter




Wouter


Yes, starting from scratch helps in most cases. But with cmake
we are used to simply clean the build dir, which doesn't help here.

It is a problem that creator's .user file is stored beside
the CMakeLists.txt: you can't check it in because of absolute paths,
a clean of the repository removes it, a buggy setup
is remember by creator, and it violates the principle
"don't touch the the source". I told them, but they don't care.

Peter



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.


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

When CDB is installed

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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-20 Thread Peter Kümmel

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

When CDB is installed

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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-21 Thread Loaden
Works well under Ubuntu 12.04 + Ninja 1.0.
Thanks a lot!

2012/9/20 Peter Kümmel 

> 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
>
> When CDB is installed
>
> 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
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> 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
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake
>



-- 
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-23 Thread Wouter van Kleunen


I had the following idea to speed up the building even more, if a tool 
can be build in ninja to list all files that need to be stat when 
building  a project. These files can be monitored by qtcreator and later 
be provided as input again to ninja. So my idea works as follows:


1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like 
ninja -t deplist).

3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files. 
This way ninja won't have to stat any file.

5. Ninja builds

Is this feasible ?


Op 22-9-2012 8:30, Loaden schreef:

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

2012/9/20 Peter Kümmel mailto:syntheti...@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

When CDB is installed


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

Please keep messages on-topic and check the CMake
FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Best Regards
Yuchen



--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Peter Kümmel

On 23.09.2012 15:04, Wouter van Kleunen wrote:


I had the following idea to speed up the building even more, if a tool
can be build in ninja to list all files that need to be stat when
building  a project. These files can be monitored by qtcreator and later
be provided as input again to ninja. So my idea works as follows:

1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like
ninja -t deplist).
3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files.
This way ninja won't have to stat any file.
5. Ninja builds

Is this feasible ?


I assume Qt Creator does it this way for qbs.
But for ninja this would be too much work.

You think even ninja is too slow?

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Loaden
I prefer keep it simply.

2012/9/24 Peter Kümmel 

> On 23.09.2012 15:04, Wouter van Kleunen wrote:
>
>>
>> I had the following idea to speed up the building even more, if a tool
>> can be build in ninja to list all files that need to be stat when
>> building  a project. These files can be monitored by qtcreator and later
>> be provided as input again to ninja. So my idea works as follows:
>>
>> 1. Build project using cmake + ninja
>> 2. Get file list of all dependencies by using ninja (something like
>> ninja -t deplist).
>> 3. Monitor the files using qt creator + qfilesystemwatcher
>>
>> When the user requests a rebuild:
>> 4. Execute a ninja build command + provide the list of changed files.
>> This way ninja won't have to stat any file.
>> 5. Ninja builds
>>
>> Is this feasible ?
>>
>
> I assume Qt Creator does it this way for qbs.
> But for ninja this would be too much work.
>
> You think even ninja is too slow?
>
>
> Peter
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake
>



-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Nils Gladitz
When I tried with one of my larger projects the first no-op build after 
a full build took something between 20 and 30 seconds but no-op builds 
after that were below a second.


I'm not really sure what would cause this (I guess disk or filesystem 
caching?).


Nils

On 09/24/2012 10:42 AM, Peter Kümmel wrote:

On 23.09.2012 15:04, Wouter van Kleunen wrote:


I had the following idea to speed up the building even more, if a tool
can be build in ninja to list all files that need to be stat when
building  a project. These files can be monitored by qtcreator and later
be provided as input again to ninja. So my idea works as follows:

1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like
ninja -t deplist).
3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files.
This way ninja won't have to stat any file.
5. Ninja builds

Is this feasible ?


I assume Qt Creator does it this way for qbs.
But for ninja this would be too much work.

You think even ninja is too slow?

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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


Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



--
Nils Gladitz, B.Sc.
DICOM, Konnektivität und Entwicklung

Scivis wissenschaftliche Bildverarbeitung GmbH
Bertha-von-Suttner-Str. 5
D-37085 Göttingen
GERMANY
Handelsregister Nr. / Trade Register No. B3100 Göttingen
Geschäftsführer / Managing Directors Dr. Gernot Ebel, Dr. Uwe Engeland

Tel: 0049 (0)551 634181-28
E-Mail: glad...@scivis.de
Web: www.scivis.de

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Peter Kümmel

On 24.09.2012 11:04, Nils Gladitz wrote:

When I tried with one of my larger projects the first no-op build after
a full build took something between 20 and 30 seconds but no-op builds
after that were below a second.

I'm not really sure what would cause this (I guess disk or filesystem
caching?).


Yes, ninja needs to read a lot of files to check dependencies.



Nils

On 09/24/2012 10:42 AM, Peter Kümmel wrote:

On 23.09.2012 15:04, Wouter van Kleunen wrote:


I had the following idea to speed up the building even more, if a tool
can be build in ninja to list all files that need to be stat when
building  a project. These files can be monitored by qtcreator and later
be provided as input again to ninja. So my idea works as follows:

1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like
ninja -t deplist).
3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files.
This way ninja won't have to stat any file.
5. Ninja builds

Is this feasible ?


I assume Qt Creator does it this way for qbs.
But for ninja this would be too much work.

You think even ninja is too slow?

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at
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

Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Wouter van Kleunen


No, ninja is not really slow. Only when the filesystem caches are cold, 
a no-op build does take a considerable time. So yeah, the performance 
difference will not be very big when the caches are hot.



Wouter


Op 24-9-2012 11:17, Peter Kümmel schreef:

On 24.09.2012 11:04, Nils Gladitz wrote:

When I tried with one of my larger projects the first no-op build after
a full build took something between 20 and 30 seconds but no-op builds
after that were below a second.

I'm not really sure what would cause this (I guess disk or filesystem
caching?).


Yes, ninja needs to read a lot of files to check dependencies.



Nils

On 09/24/2012 10:42 AM, Peter Kümmel wrote:

On 23.09.2012 15:04, Wouter van Kleunen wrote:


I had the following idea to speed up the building even more, if a tool
can be build in ninja to list all files that need to be stat when
building  a project. These files can be monitored by qtcreator and 
later

be provided as input again to ninja. So my idea works as follows:

1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like
ninja -t deplist).
3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files.
This way ninja won't have to stat any file.
5. Ninja builds

Is this feasible ?


I assume Qt Creator does it this way for qbs.
But for ninja this would be too much work.

You think even ninja is too slow?

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at
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

Follow this link to subscribe/unsubscribe:
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


Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ


Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-24 Thread Wouter van Kleunen


Also, the design goal of ninja was to build things "as fast as 
possible". And when "convenience and speed are in conflict, prefer speed."



Although I can't totally disagree with Loadens comment to keep it simple 
and your comment that the speed is reasonable now.



Op 24-9-2012 18:06, Wouter van Kleunen schreef:


No, ninja is not really slow. Only when the filesystem caches are 
cold, a no-op build does take a considerable time. So yeah, the 
performance difference will not be very big when the caches are hot.



Wouter


Op 24-9-2012 11:17, Peter Kümmel schreef:

On 24.09.2012 11:04, Nils Gladitz wrote:

When I tried with one of my larger projects the first no-op build after
a full build took something between 20 and 30 seconds but no-op builds
after that were below a second.

I'm not really sure what would cause this (I guess disk or filesystem
caching?).


Yes, ninja needs to read a lot of files to check dependencies.



Nils

On 09/24/2012 10:42 AM, Peter Kümmel wrote:

On 23.09.2012 15:04, Wouter van Kleunen wrote:


I had the following idea to speed up the building even more, if a 
tool

can be build in ninja to list all files that need to be stat when
building  a project. These files can be monitored by qtcreator and 
later

be provided as input again to ninja. So my idea works as follows:

1. Build project using cmake + ninja
2. Get file list of all dependencies by using ninja (something like
ninja -t deplist).
3. Monitor the files using qt creator + qfilesystemwatcher

When the user requests a rebuild:
4. Execute a ninja build command + provide the list of changed files.
This way ninja won't have to stat any file.
5. Ninja builds

Is this feasible ?


I assume Qt Creator does it this way for qbs.
But for ninja this would be too much work.

You think even ninja is too slow?

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at
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

Follow this link to subscribe/unsubscribe:
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


Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ


Follow this link to subscribe/unsubscribe:
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


Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ


Follow this link to subscribe/unsubscribe:
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

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-25 Thread Marcus D. Hanwell
On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel  wrote:
> 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
>
I just saw this thread, on Linux if I already have CMake 2.8.9 and a
recent ninja build I take it I just need your patched Qt Creator? I
tried adding custom build steps and that kind of works but I lose the
warning/error parsing - would that work with this patched version?

Thanks for all your work, I am looking forward to Ninja generator
integration in Qt Creator!

Marcus
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-25 Thread Peter Kümmel

On 25.09.2012 17:29, Marcus D. Hanwell wrote:

On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel  wrote:

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


I just saw this thread, on Linux if I already have CMake 2.8.9 and a
recent ninja build I take it I just need your patched Qt Creator? I
tried adding custom build steps and that kind of works but I lose the
warning/error parsing - would that work with this patched version?


Yes, complete warning/error parsing. Use the 2.6-ninja branch.



Thanks for all your work, I am looking forward to Ninja generator
integration in Qt Creator!


You are welcome! Please post any issue, I'll try to fix them.



Marcus


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-25 Thread Marcus D. Hanwell
On Tue, Sep 25, 2012 at 2:56 PM, Peter Kümmel  wrote:
> On 25.09.2012 17:29, Marcus D. Hanwell wrote:
>>
>> On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel  wrote:
>>>
>>> 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
>>>
>> I just saw this thread, on Linux if I already have CMake 2.8.9 and a
>> recent ninja build I take it I just need your patched Qt Creator? I
>> tried adding custom build steps and that kind of works but I lose the
>> warning/error parsing - would that work with this patched version?
>
> Yes, complete warning/error parsing. Use the 2.6-ninja branch.
>
Just got this compiled - it looks great.
>>
>> Thanks for all your work, I am looking forward to Ninja generator
>> integration in Qt Creator!
>
> You are welcome! Please post any issue, I'll try to fix them.

Will do, so far it seems to be working great. It is nice to have an
option to store the CMakeLists.txt.user in the build directory too,
that always bugged me and I wondered why they had chosen to go that
way. Looks great, with all warnings etc showing up in the editor as I
would expect.

I have tested it with VTK, and will likely look at some of the other
projects I am working on soon. So far so good - thanks for pushing
this forward. How much of this will make it into Qt Creator 2.6?

Marcus
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-26 Thread Peter Kümmel

On 25.09.2012 23:17, Marcus D. Hanwell wrote:

On Tue, Sep 25, 2012 at 2:56 PM, Peter Kümmel  wrote:

On 25.09.2012 17:29, Marcus D. Hanwell wrote:


On Thu, Sep 20, 2012 at 7:26 AM, Peter Kümmel  wrote:


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


I just saw this thread, on Linux if I already have CMake 2.8.9 and a
recent ninja build I take it I just need your patched Qt Creator? I
tried adding custom build steps and that kind of works but I lose the
warning/error parsing - would that work with this patched version?


Yes, complete warning/error parsing. Use the 2.6-ninja branch.


Just got this compiled - it looks great.


Thanks for all your work, I am looking forward to Ninja generator
integration in Qt Creator!


You are welcome! Please post any issue, I'll try to fix them.


Will do, so far it seems to be working great. It is nice to have an
option to store the CMakeLists.txt.user in the build directory too,
that always bugged me and I wondered why they had chosen to go that
way. Looks great, with all warnings etc showing up in the editor as I
would expect.


Yes, I also didn't like these CMakeLists.txt.user in the source three,
therefore the patch ;)



I have tested it with VTK, and will likely look at some of the other
projects I am working on soon. So far so good - thanks for pushing
this forward. How much of this will make it into Qt Creator 2.6?


AFAIK 2.6 will come without any ninja support. At least two of my
changes are upstream now in master.



Marcus


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-26 Thread Loaden
Two changes? I can found only one for ninja in here:
https://codereview.qt-project.org/#change,34851
B.T.W I am stay 2.6 too. and Ninja Generator in 2.6 works well.
Thanks for your works.

2012/9/27 Peter Kümmel 

> AFAIK 2.6 will come without any ninja support. At least two of my
> changes are upstream now in master.
>



-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-26 Thread Peter Kümmel

There's also this patch
https://codereview.qt-project.org/#change,35006
which is on my 2.6-ninja branch, but it is not
a ninja relevant fix.

On 27.09.2012 04:23, Loaden wrote:

Two changes? I can found only one for ninja in here:
https://codereview.qt-project.org/#change,34851
B.T.W I am stay 2.6 too. and Ninja Generator in 2.6 works well.
Thanks for your works.

2012/9/27 Peter Kümmel 


AFAIK 2.6 will come without any ninja support. At least two of my
changes are upstream now in master.






--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-10-05 Thread Peter Kümmel

On 25.09.2012 23:17, Marcus D. Hanwell wrote:


I have tested it with VTK, and will likely look at some of the other
projects I am working on soon. So far so good - thanks for pushing
this forward. How much of this will make it into Qt Creator 2.6?


The essential patches are now in the official 2.6 branch

And I've back ported a CMake code completion patch to my 2.6-ninja branch.

Peter


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake/Ninja support in Qt Creator

2012-10-05 Thread Loaden
>
> The essential patches are now in the official 2.6 branch
>
great!

And I've back ported a CMake code completion patch to my 2.6-ninja branch.
>
It only doesn't work with Qt5.
But it works well with Qt4.
both in Windows and Linux.
It's maybe Qt5's bug. But I can't figure out what's the wrong.

2012/10/5 Peter Kümmel 

> The essential patches are now in the official 2.6 branch
>
> And I've back ported a CMake code completion patch to my 2.6-ninja branch.
>



-- 
*Please don't ask where I come from, It's a shame!*
Best Regards
Yuchen
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake