Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-08 Thread Jean-Christophe Fillion-Robin
Hi Michael, May be you could have a look at [1], [2] and [3]. It basically illustrates how to moc a header a file and include at the end of cpp file. Hth Jc [1] https://github.com/commontk/CTK/blob/master/Libs/Testing/CMake/ctkMacroGenerateMocs.cmake [2]

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-08 Thread David Cole
On Thu, Mar 8, 2012 at 9:50 AM, Michael Jackson mike.jack...@bluequartz.net wrote: On Mar 7, 2012, at 11:43 AM, Andreas Pakulat wrote: On 07.03.12 10:10:27, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-08 Thread Michael Jackson
On Thu, Mar 8, 2012 at 11:30 AM, Andreas Pakulat ap...@gmx.de wrote: On 08.03.12 09:50:55, Michael Jackson wrote: On Mar 7, 2012, at 11:43 AM, Andreas Pakulat wrote: On 07.03.12 10:10:27, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I

[CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be moc'ed and feed those to moc with this type of CMake Code: QT4_WRAP_CPP(

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Hertling
On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be moc'ed and feed those to moc with this type of CMake

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
On Mar 7, 2012, at 10:50 AM, Michael Hertling wrote: On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread John Drescher
I would have to say that I didn't dig into the QT4_WRAP_CPP macro at all. If I had I would have probably answered my own question. I will give you idea a shot and report back if it works or not. Thanks for the idea. Please do so. I would be very interested in your findings on this one..

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Andreas Pakulat
On 07.03.12 10:10:27, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be moc'ed and feed those to moc with this type of CMake

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Wild
On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be moc'ed and feed those to moc with this type of CMake

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
On Mar 7, 2012, at 12:05 PM, Michael Wild wrote: On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be