Re: [cmake-developers] Automoc in cmake

2011-09-20 Thread Brad King
On 9/20/2011 1:26 AM, Alexander Neundorf wrote: set(CMAKE_INCLUDE_CURRENT_DIR ON) automatically adds the current source dir and the current binary dir for each directory which has a target as include directory. This is a bit more than necessary for automoc. For automoc for every target which nee

Re: [cmake-developers] Automoc in cmake

2011-09-19 Thread Alexander Neundorf
On Sunday, September 18, 2011 07:11:58 PM Marcus D. Hanwell wrote: > On Sun, Sep 18, 2011 at 6:39 AM, Alexander Neundorf wrote: > > On Saturday, September 17, 2011 07:16:28 PM Stephen Kelly wrote: > >> Stephen Kelly writes: > >> > Alexander Neundorf wrote: > >> > > >> > > >> > Would it be poss

Re: [cmake-developers] Automoc in cmake

2011-09-18 Thread Marcus D. Hanwell
On Sun, Sep 18, 2011 at 6:39 AM, Alexander Neundorf wrote: > On Saturday, September 17, 2011 07:16:28 PM Stephen Kelly wrote: >> Stephen Kelly writes: >> > Alexander Neundorf wrote: >> > >> > >> > Would it be possible to make CMAKE_AUTOMOC imply >> > CMAKE_INCLUDE_CURRENT_DIR? >> > >> > All the b

Re: [cmake-developers] Automoc in cmake

2011-09-18 Thread Alexander Neundorf
On Saturday, September 17, 2011 07:16:28 PM Stephen Kelly wrote: > Stephen Kelly writes: > > Alexander Neundorf wrote: > > > > > > Would it be possible to make CMAKE_AUTOMOC imply > > CMAKE_INCLUDE_CURRENT_DIR? > > > > All the best, > > > > Steve. > > Is it still possible to consider this? It

Re: [cmake-developers] Automoc in cmake

2011-09-17 Thread Stephen Kelly
Stephen Kelly writes: > > Alexander Neundorf wrote: > > > Would it be possible to make CMAKE_AUTOMOC imply CMAKE_INCLUDE_CURRENT_DIR? > > All the best, > > Steve. > Is it still possible to consider this? It's not ideal that you have to do this: set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURR

Re: [cmake-developers] Automoc in cmake

2011-08-17 Thread Bill Hoffman
Looks like the bootstrap test is failing: http://www.cdash.org/CDash/viewConfigure.php?buildid=1438622 you need to wrap the moc stuff with this: #if defined(CMAKE_BUILD_WITH_CMAKE) -Bill ___ cmake-developers mailing list cmake-developers@cmake.org ht

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread David Cole
On Tue, Aug 16, 2011 at 5:47 PM, Alexander Neundorf wrote: > On Tuesday 16 August 2011, David Cole wrote: > >> 2011/8/16 Alexander Neundorf : > >> > On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> >> On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> >> > >> >> ... > >> >> > >> >>

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread Alexander Neundorf
On Tuesday 16 August 2011, David Cole wrote: > 2011/8/16 Alexander Neundorf : > > On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> > >> ... > >> > >> > There is now a branch AutomocForQt on the cmake stage. > >> > > >> > Docs and

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread Stephen Kelly
Alexander Neundorf wrote: > On Tuesday 16 August 2011, Alexander Neundorf wrote: >> On Tuesday 16 August 2011, Alexander Neundorf wrote: >> ... >> >> > There is now a branch AutomocForQt on the cmake stage. >> > Docs and a test are still missing. >> >> It has a test now. Docs are still missing.

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread David Cole
2011/8/16 Alexander Neundorf : > On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> On Tuesday 16 August 2011, Alexander Neundorf wrote: > >> ... > >> > >> > There is now a branch AutomocForQt on the cmake stage. > >> > Docs and a test are still missing. > >> > >> It has a test now. Docs are

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread Alexander Neundorf
On Tuesday 16 August 2011, Alexander Neundorf wrote: > On Tuesday 16 August 2011, Alexander Neundorf wrote: > ... > > > There is now a branch AutomocForQt on the cmake stage. > > Docs and a test are still missing. > > It has a test now. Docs are still missing. Now it also has docs. I haven't mer

Re: [cmake-developers] Automoc in cmake

2011-08-15 Thread Alexander Neundorf
On Tuesday 16 August 2011, Alexander Neundorf wrote: ... > There is now a branch AutomocForQt on the cmake stage. > Docs and a test are still missing. It has a test now. Docs are still missing. Alex ___ cmake-developers mailing list cmake-developers@cma

Re: [cmake-developers] Automoc in cmake

2011-08-15 Thread Alexander Neundorf
On Saturday 04 June 2011, Alexander Neundorf wrote: > Hi, > > one feature which all KDE developers are used to and which is also used by > qmake when building Qt is "automoc". > > This means that you don't have to write > qt4_wrap_cpp(srcs ${filesToBeMoced}) > > but instead you simply do > kde4_

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Clinton Stimpson
On Thursday, June 09, 2011 01:23:09 am Alexander Neundorf wrote: > On Wednesday 08 June 2011, Brad King wrote: > > On 6/8/2011 2:59 PM, Alexander Neundorf wrote: > > > The "two things" are > > > - BSD licensing, we did that 3 years ago: > > > http://quickgit.kde.org/?p=automoc.git&a=commit&h=78fdb

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Brad King
On 6/9/2011 8:47 AM, Alexander Neundorf wrote: > So, if I would create a dummy foo.automoc file from automoc, and added this > to > the target, this would make sure that any files created as "side-effects" of > this custom command would already exist when any source files are compiled ? Yes. I

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Alexander Neundorf
On Thursday 09 June 2011, Brad King wrote: > On 6/9/2011 4:12 AM, Alexander Neundorf wrote: > > AFAIK depending on generated files via the #include does not work/is not > > reliable (that's why generated files need to be added to the target). > > For the Makefile generators, each target builds in

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Brad King
On 6/9/2011 4:12 AM, Alexander Neundorf wrote: > AFAIK depending on generated files via the #include does not work/is not > reliable (that's why generated files need to be added to the target). For the Makefile generators, each target builds in three steps: (1) Generate all custom command output

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Rolf Eike Beer
> On Thursday 09 June 2011, Alexander Neundorf wrote: > ... >> At build time, the logic is complex enough and it also has to be really >> fast so that this should IMO be done in the C++. >> It could either be a -E automoc option, or a -P >> CMakeAutomoc.cmake script, which then calls a new automoc

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Alexander Neundorf
On Thursday 09 June 2011, Rolf Eike Beer wrote: > > Right now this is done by adding an extra target _automoc to > > every target. > > If I added a custom command for every source file, which would create > > basically a timestamp file, and run automoc just on this source file, I > > would get the

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Alexander Neundorf
On Thursday 09 June 2011, Alexander Neundorf wrote: ... > At build time, the logic is complex enough and it also has to be really > fast so that this should IMO be done in the C++. > It could either be a -E automoc option, or a -P > CMakeAutomoc.cmake script, which then calls a new automoc() funct

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Rolf Eike Beer
Alex Neundorf wrote: > On Thursday 09 June 2011, Rolf Eike Beer wrote: >> Clinton Stimpson wrote: >> > On Wednesday, June 08, 2011 12:59:36 pm Alexander Neundorf wrote: >> So maybe we could step back and >> look from a slightly greater distance at this. What would such a scanner >> need to know? A

Re: [cmake-developers] Automoc in cmake

2011-06-09 Thread Alexander Neundorf
On Wednesday 08 June 2011, Brad King wrote: > On 6/8/2011 2:59 PM, Alexander Neundorf wrote: > > The "two things" are > > - BSD licensing, we did that 3 years ago: > > http://quickgit.kde.org/?p=automoc.git&a=commit&h=78fdba1e2d96bc455125317 > > 48ffb770cb1124798 -and porting to STL+cmsys, we did

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Alexander Neundorf
On Thursday 09 June 2011, Rolf Eike Beer wrote: > Clinton Stimpson wrote: > > On Wednesday, June 08, 2011 12:59:36 pm Alexander Neundorf wrote: > > > Beside that, I didn't ask explicitely, but I'm sure without automoc > > > cmake > > > is out of the game for becoming the buildsystem for Qt5 (becaus

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Rolf Eike Beer
Clinton Stimpson wrote: > On Wednesday, June 08, 2011 12:59:36 pm Alexander Neundorf wrote: > > Beside that, I didn't ask explicitely, but I'm sure without automoc > > cmake > > is out of the game for becoming the buildsystem for Qt5 (because in Qt4 > > they do automoc in qmake). > > What if this

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread James Bigler
On Wed, Jun 8, 2011 at 1:35 PM, Brad King wrote: > On 6/8/2011 3:33 PM, Clinton Stimpson wrote: > > It seems an extra tool is needed at build time to handle qrc files > correctly, > > and I'm wondering if a generic tool could handle both this and the > autmoc. > > It is not possible to implement

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Michael Wild
On 06/08/2011 09:24 PM, Bill Hoffman wrote: > On 6/8/2011 2:59 PM, Alexander Neundorf wrote: > >> >> The "two things" are >> - BSD licensing, we did that 3 years ago: >> http://quickgit.kde.org/?p=automoc.git&a=commit&h=78fdba1e2d96bc45512531748ffb770cb1124798 >> >> -and porting to STL+cmsys, we

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Brad King
On 6/8/2011 2:59 PM, Alexander Neundorf wrote: > The "two things" are > - BSD licensing, we did that 3 years ago: > http://quickgit.kde.org/?p=automoc.git&a=commit&h=78fdba1e2d96bc45512531748ffb770cb1124798 > > -and porting to STL+cmsys, we did that now Great. Please push a topic to the sta

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Brad King
On 6/8/2011 3:33 PM, Clinton Stimpson wrote: > It seems an extra tool is needed at build time to handle qrc files correctly, > and I'm wondering if a generic tool could handle both this and the autmoc. It is not possible to implement custom build-time dependency scanning in VS IDE projects withou

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Clinton Stimpson
On Wednesday, June 08, 2011 12:59:36 pm Alexander Neundorf wrote: > On Monday, June 06, 2011 03:37:16 PM Brad King wrote: > > On 06/06/2011 03:56 AM, Alexander Neundorf wrote: > > > On Saturday, June 04, 2011 10:24:52 AM Alexander Neundorf wrote: > > >> Hi, > > >> > > >> one feature which all KDE

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Bill Hoffman
On 6/8/2011 2:59 PM, Alexander Neundorf wrote: The "two things" are - BSD licensing, we did that 3 years ago: http://quickgit.kde.org/?p=automoc.git&a=commit&h=78fdba1e2d96bc45512531748ffb770cb1124798 -and porting to STL+cmsys, we did that now Beside that, I didn't ask explicitely, but I'm su

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Alexander Neundorf
On Monday, June 06, 2011 03:37:16 PM Brad King wrote: > On 06/06/2011 03:56 AM, Alexander Neundorf wrote: > > On Saturday, June 04, 2011 10:24:52 AM Alexander Neundorf wrote: > >> Hi, > >> > >> one feature which all KDE developers are used to and which is also used > >> by qmake when building Qt i

Re: [cmake-developers] Automoc in cmake

2011-06-06 Thread Brad King
On 06/06/2011 03:56 AM, Alexander Neundorf wrote: > On Saturday, June 04, 2011 10:24:52 AM Alexander Neundorf wrote: >> Hi, >> >> one feature which all KDE developers are used to and which is also used by >> qmake when building Qt is "automoc". >> >> This means that you don't have to write >> qt4_w

Re: [cmake-developers] Automoc in cmake

2011-06-06 Thread Alexander Neundorf
On Saturday, June 04, 2011 10:24:52 AM Alexander Neundorf wrote: > Hi, > > one feature which all KDE developers are used to and which is also used by > qmake when building Qt is "automoc". > > This means that you don't have to write > qt4_wrap_cpp(srcs ${filesToBeMoced}) > > but instead you simp

Re: [cmake-developers] Automoc in cmake

2011-06-04 Thread Nicolas Desprès
Hi, IMHO, both proposals are too Qt/KDE specific to be integrated into cmake this way. Maybe cmake could provide a more generic approach like allowing you to run whatever dependency scanner at some stage in the build process. -Nico On Saturday, June 4, 2011, Alexander Neundorf wrote: > Hi, > >