Re: make KDE4_AUTOMOC compatible to qmake

2007-06-08 Thread Alexander Neundorf
On Friday 08 June 2007 05:07, Matthias Kretz wrote: > On Friday 08 June 2007, Alexander Neundorf wrote: > > Using OBJECT_DEPENDS works more or less, but not 100%. > > > :( Is this a bug in cmake or is it some corner case that > > add_library/add_executable works around? > > > IOW we have to stay wi

Re: Cannot "make install" in KDE4 because CMake sets the wrong install-dir

2007-06-08 Thread Stephan Kulow
Am Friday 08 June 2007 schrieb Alexander Neundorf: > Your the third person who considers this new behaviour (KDE apps follow to > kdelibs install location) a bug. > It reuses the install dirs from the installed kdelibs. > I changed it now so the install dirs are only reused if the current > CMAKE_I

Re: kde4_add_test is not sufficient

2007-06-08 Thread Thiago Macieira
Andreas Pakulat said: > On 08.06.07 00:34:17, Alexander Neundorf wrote: >> Not sure we need this. If it just adds add_test() to >> kde4_add_test_executable() it might more confuse than help. > > Well, kde4_add_unit_test is simply just a little convenience macro to > not having to remember to use b

Re: Cannot "make install" in KDE4 because CMake sets the wrong install-dir

2007-06-08 Thread Andreas Pakulat
On 08.06.07 00:28:35, Alexander Neundorf wrote: > On Thursday 07 June 2007 07:24, Carsten Niehaus wrote: > > Moin > > > > kdelibs from 2 days ago, Qt 4.3-final, CMake 2.4.6. OpenSUSE 10.2, latest > > svn of kdeedu. > > > > As you can see here > > > > http://rafb.net/p/KsCM3V63.html > > > > I am usi

Re: kde4_add_test is not sufficient

2007-06-08 Thread Andreas Pakulat
On 08.06.07 00:34:17, Alexander Neundorf wrote: > On Thursday 07 June 2007 03:00, David Faure wrote: > > The naming is a bit unfortunate IMHO. "kde4_add_test" is called this way > > to look like "kde4_add_executable", i.e. "build this test program" > > (which could be automated or interactive). But

Re: make KDE4_AUTOMOC compatible to qmake

2007-06-08 Thread Thiago Macieira
Matthias Kretz said: > On Friday 08 June 2007, Thiago Macieira wrote: >> Alexander Neundorf said: >> > IOW we have to stay with a non-source-file extension. >> >> Yep: >> >> *.moc for anything #included (this includes moc_*.moc, if needed) >> moc_*.cpp for anything that isn't #included (but has a

Re: make KDE4_AUTOMOC compatible to qmake

2007-06-08 Thread Matthias Kretz
On Friday 08 June 2007, Thiago Macieira wrote: > Alexander Neundorf said: > > IOW we have to stay with a non-source-file extension. > > Yep: > > *.moc for anything #included (this includes moc_*.moc, if needed) > moc_*.cpp for anything that isn't #included (but has a Q_OBJECT > nonetheless) But KD

Re: make KDE4_AUTOMOC compatible to qmake

2007-06-08 Thread Thiago Macieira
Alexander Neundorf said: > IOW we have to stay with a non-source-file extension. Yep: *.moc for anything #included (this includes moc_*.moc, if needed) moc_*.cpp for anything that isn't #included (but has a Q_OBJECT nonetheless) -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT)

Re: make KDE4_AUTOMOC compatible to qmake

2007-06-08 Thread Matthias Kretz
On Friday 08 June 2007, Alexander Neundorf wrote: > Using OBJECT_DEPENDS works more or less, but not 100%. :( Is this a bug in cmake or is it some corner case that add_library/add_executable works around? > IOW we have to stay with a non-source-file extension. How about the attached patch? It c