[CMake] Configuring output directory for ui_* and moc_* files

Peter von Niederhaeusern pvonnied at gmail.com
Tue Feb 16 04:27:26 EST 2010


Hello

Following problem: I'd like to configure CMake to place the uis and the mocs
of Qt in a specific directory (thus not cluttering up my source
trees). Is there an easy way
to achieve this? Of course I then have to specifiy where those files
are for the build to no
fail...

My source tree looks like this:

CMakeLists.txt ( add_subdirectory(sources) )
sources/
->CMakeLists.txt
->include/*.hpp
->src/*.cpp
->ui/*.ui
->generated/ (this is where I'd like to place the mocified headers and
uis [as an example])

Thanks for any hints/sources/info
Peter


More information about the CMake mailing list