[CMake] Problem using QT_WRAP_UI

William A. Hoffman billlist at nycap.rr.com
Fri May 19 08:31:39 EDT 2006


At 06:37 AM 5/19/2006, Christian Koerner wrote:
>Hi,
>
>I have a problem using cmake in combination with QT. QT_WRAP_CPP works
>perfectly.
>
>But when I use QT_WRAP_UI no .h and .cxx files are generated. Is there
>anything I forgot regarding QT_WRAP_UI?
>
>----------------------snip--------------------------
>
>SET(IMEDGINE_UI_SOURCELIST gui/ui/TestDialog.ui)
>
>QT_WRAP_UI(IMEDGINE_UI_LIB IMEDGINE_UI_SRC_FILES IMEDGINE_UI_H_FILES
>IMEDGINE_UI_SOURCELIST)
>
>
>----------------------snip--------------------------
>
>I want to subclass another class from TestDialog. When I use
>
>#include gui/ui/TestDialog.h
>
>the file cannot be found.

Add any .h files that are generated into the source list for the target
that uses them.

-Bill



More information about the CMake mailing list