[CMake] Patch to FindQt4.cmake for supporting moc compiler options
Miguel A. Figueroa-Villanueva
miguelf at ieee.org
Sat Nov 24 17:23:16 EST 2007
Hello,
I would like to propose the following patch or something similar to
add support for moc compiler options. Currently, one can do the
following:
SET(moc-sources foo.h bar.h)
QT4_WRAP_CPP(sources ${moc-sources})
With the attached patch one could pass also options to be invoked with
each moc-source:
QT4_WRAP_CPP(sources ${moc-sources} OPTIONS -DMYDEF)
The current approach is a simplified one to support the following syntax:
QT4_WRAP_CPP(<outputfiles> <moc-sources> [OPTIONS opt1 opt2 ...])
This could also be applied to QT4_WRAP_UI(...).
--Miguel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindQt4.cmake.patch
Type: application/octet-stream
Size: 1458 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20071124/6342187e/FindQt4.cmake.obj
More information about the CMake
mailing list