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

Maik Keller atracks at gmx.de
Tue Aug 14 12:32:34 EDT 2007


Ok - I thought about the solution which is already provided by cmake. Probably it is a good moment to change the organization of my own files and directories. I give it a try :-)

Now there is only one thing left I worry about: because of all the generated files the build-directory seems to look like a mess. I mean e.g. using Visual Studio the solution file (.sln) is also in the same directory with the automatically generated files. So the build directory is a bit chaotic. And in large projects this directory can contain an enormous number of (generated) files...

Or is there any other possibility to avoid this? Maybe by defining a variable/directory for all the generated files in general?

Thank you guys for the quick and competent help!

-Mick



-------- Original-Nachricht --------
Datum: Tue, 14 Aug 2007 12:11:34 -0400
Von: Alexander Neundorf <a.neundorf-work at gmx.net>
An: "Maik Keller" <atracks at gmx.de>
CC: cmake at 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.
> > 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 variable CMAKE_INCLUDE_CURRENT_DIR to true so cmake does that 
> automatically.
> 
> Alex

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger


More information about the CMake mailing list