[CMake] Custom directories for QT4

Marcin Gil marcin.gil at gmail.com
Mon Oct 29 11:29:41 EDT 2007


Hi!

Using qmake and it's project files one can define locations eg for
moc/ui parsed files.
The variables are UI_DIR for UI generated headers location and MOC_DIR
for moc generated files.

Simply setting set (UI_DIR ui) doesn't work.

Is there a way to force generation of those files to directories I
want? So that after:

set (xx_UIS xx.ui)
qt4_wrap_ui(xx_UIS_H ${xx.UIS})

those would land in "ui" subdirectory?

Thanks,
-Marcin


More information about the CMake mailing list