[CMake] Output directory for genereated ui_Header.h files
Andreas Pakulat
apaku at gmx.de
Thu Apr 2 05:58:19 EDT 2009
On 02.04.09 16:46:51, Ivan Chupahin wrote:
> Hi,folks!
>
> My project uses Qt4 and i need to generate *.h files from *.ui files. For
> that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where
> CMake is running.
That is the correct place. All generated files should be in the
build directory and not the source directory. To be able to use
#include "ui_foo.h"
You should add CMAKE_CURRENT_BINARY_DIR and/or CMAKE_BINARY_DIR to your include
directories.
Andreas
--
Your lucky number has been disconnected.
More information about the CMake
mailing list