[Cmake] hardcoded prefix for QT_WRAP_UI inputs

David Thompson dcthomp at sandia.gov
Mon May 19 11:55:39 EDT 2003


On Mon, 2003-05-19 at 02:28, Ian Scott wrote:
> > From: David Thompson [mailto:dcthomp at sandia.gov]
> > ... I have a QT ui file, blah.ui, that I've created using
> > CONFIGURE_FILE so
> > that some example text gets set to the CMAKE_INSTALL_PREFIX path.
> > Because the file is generated and placed in my out-of-source build
> > project_BINARY_DIR, the Makefile complains that there is no
> > rule to make
> > ${project_SOURCE_DIR}/blah.ui. If I try to specify the full path,
> > ${project_BINARY_DIR}/blah.ui, to QT_WRAP_UI the Makefile looks for
> > ${project_SOURCE_DIR}/${project_BINARY_DIR}/blah.ui ... is this a
> > feature?
> 
> Probably not.
> 
> The QT wrapping commands in cmake were not written by the main CMake
> authors, and since they don't use them, you'll have to put up the QT mods
> authors' less than ideal response....
> 
> Franck (author of QT_WARP_UI) and I (author of QT_WRAP_CPP) do not currently
> have the time to maintain/enhance these commands beyond their basic
> operation - with which there hasn't been any problem recently. We suggest
> looking at the CMake Source. The QT_WRAP_* commands are really quite simple.
> 
> Sorry we can't be more help.

Would anyone object to the attached patch? It retains original behavior
unless
1. The filename of the UI file begins with a '/', indicating that it's
an absolute filename and should not have the current source directory
prepended, OR
2. The UI file has the GENERATED property set, indicating that it will
be in the binary directory, not the source directory.

		David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_moc.patch
Type: text/x-patch
Size: 687 bytes
Desc: 
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030519/71ed5f7f/attachment.bin>


More information about the CMake mailing list