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

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 neund...@kde.org wrote: On Saturday, September 17, 2011 07:16:28 PM Stephen Kelly wrote: Stephen Kelly steveire@... writes: Alexander Neundorf wrote: Would it

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 steveire@... 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

Re: [cmake-developers] Automoc in cmake

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

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 merged it

Re: [cmake-developers] Automoc in cmake

2011-08-16 Thread David Cole
2011/8/16 Alexander Neundorf neund...@kde.org: 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

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 neund...@kde.org: 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

Re: [cmake-developers] Automoc in cmake

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

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

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.gita=commith=78fdba1e2d96bc455125317 48ffb770cb1124798 -and porting to STL+cmsys, we did that now

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 infofile option, or a -P CMakeAutomoc.cmake script, which then calls a new

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 outputs

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 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:

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread Alexander Neundorf
without automoc cmake is out of the game for becoming the buildsystem for Qt5 (because in Qt4 they do automoc in qmake). Alex ___ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

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.gita=commith=78fdba1e2d96bc45512531748ffb770cb1124798 -and porting to STL+cmsys, we did that now Beside that, I didn't ask explicitely, but I'm sure

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 without

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.gita=commith=78fdba1e2d96bc45512531748ffb770cb1124798 -and porting to STL+cmsys, we did that now Great. Please push a topic to the stage for

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.gita=commith=78fdba1e2d96bc45512531748ffb770cb1124798 -and porting to STL+cmsys, we did that now

Re: [cmake-developers] Automoc in cmake

2011-06-08 Thread James Bigler
On Wed, Jun 8, 2011 at 1:35 PM, Brad King brad.k...@kitware.com 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

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 was a

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 simply do

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_wrap_cpp(srcs

[cmake-developers] Automoc in cmake

2011-06-04 Thread Alexander Neundorf
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_add_executable(hello ${srcs}) and everything including moc is handled

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 neund...@kde.org