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

Attachment: FindQt4.cmake.patch
Description: Binary data

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to