RE: RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller wrote: > Thanks Torsten. I just tested it, and it seems to work with > CMAKE_CURRENT_SOURCE_DIR. Would it be possible to provide me with > your implementation of the AIS_MOC macro as well? Here it is: # Run Qt MOC on a C++ header file. # Arguments: #1

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Marie-Christine Vallet
Marie-Christine Vallet wrote: Maik Keller wrote: Hi, but I need to include the generated header file in my derived class file. How do I do this if the generated file is not in one of my source directories? Thanks, Maik Yes, but you don't need to change the location with cmake. I am also

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
"Maik Keller" <[EMAIL PROTECTED]> CC: cmake@cmake.org Betreff: Re: [CMake] Location of ui and moc generated files (qt) > On Tuesday 14 August 2007 11:52, you wrote: > > Hi, > > > > but I need to include the generated header file in my derived class > file. >

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Marie-Christine Vallet
Maik Keller wrote: Hi, but I need to include the generated header file in my derived class file. How do I do this if the generated file is not in one of my source directories? Thanks, Maik Yes, but you don't need to change the location with cmake. I am also working with a qt project and my

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 11:52, you wrote: > Hi, > > but I need to include the generated header file in my derived class file. > How do I do this if the generated file is not in one of my source > directories? You can add CMAKE_CURRENT_BINARY_DIRECTORY as include directory or set the cmake varia

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
TED]> An: cmake@cmake.org Betreff: Re: [CMake] Location of ui and moc generated files (qt) > If you are working on a bigger project with more developers, you shouldn't > generate the files in the source directory. You or other developers will > sooner or later use out-of-source buil

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 11:31, Maik Keller wrote: > Thanks Torsten. I just tested it, and it seems to work with > CMAKE_CURRENT_SOURCE_DIR. Would it be possible to provide me with your > implementation of the AIS_MOC macro as well? If you are working on a bigger project with more developers, you

Re: RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Martinsen <[EMAIL PROTECTED]> An: "Maik Keller" <[EMAIL PROTECTED]> CC: cmake@cmake.org Betreff: RE: [CMake] Location of ui and moc generated files (qt) > Maik Keller <mailto:[EMAIL PROTECTED]> wrote: > > > Thank you Torsten! > > If

RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller wrote: > Thank you Torsten! > If I would exchange CMAKE_CURRENT_BINARY_DIR for > CMAKE_CURRENT_SOURCE_DIR in your macro and if I would also add > CMAKE_CURRENT_SOURCE_DIR to my include directories, then it should > work the way as I need the generated files i

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
, Mick Original-Nachricht Datum: Tue, 14 Aug 2007 16:01:27 +0200 Von: Torsten Martinsen <[EMAIL PROTECTED]> An: "Maik Keller" <[EMAIL PROTECTED]> CC: cmake@cmake.org Betreff: RE: [CMake] Location of ui and moc generated files (qt) > Maik Keller

RE: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Torsten Martinsen
Maik Keller <> wrote: > Hi Alex, > > I prefer to use the class, which is contained in the automatically > generated ui-header file, as a base class for an extended > implementation of the widget. Therefore I have to include the header > of that class. So it would be nice to locate the base class

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
te any help of defining such custom commands for ui and moc files. I tried it on my own, but I failed... Thanks, Mick Original-Nachricht Datum: Tue, 14 Aug 2007 08:24:56 -0400 Von: Alexander Neundorf <[EMAIL PROTECTED]> An: cmake@cmake.org Betreff: Re: [CMake] Location of

Re: [CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Alexander Neundorf
On Tuesday 14 August 2007 04:57, Maik Keller wrote: > Hello, > > I'd like to use cmake for my upcoming project. I am going to use qt also. > At the moment I use the QT4_WRAP_UI macro in CMake. > > I am wondering about the name and the location of the generated moc and ui > files. Is it possible to

[CMake] Location of ui and moc generated files (qt)

2007-08-14 Thread Maik Keller
Hello, I'd like to use cmake for my upcoming project. I am going to use qt also. At the moment I use the QT4_WRAP_UI macro in CMake. I am wondering about the name and the location of the generated moc and ui files. Is it possible to rename these files (by default ui_...) and to determine anothe