[Scons-users] qt5 question: how to handle header files in separate directories?
Dirk Bächle
tshortik at gmx.de
Mon Aug 4 15:31:55 EDT 2014
Hi Bertwin,
thanks for coming over to the User mailing list.
On 04.08.2014 20:38, B.W.H. van Beest wrote:
> Hello, I have a question on the use of QT together with scons.
> I am trying to use the tool 'qt5' to this end.
>
> In my case, I have header files (containing Q_OBJECT) residing in a
> directory that is different from where the corresponding
> implementation files reside. This situation is typical for the source
> code of a library when you don't want to expose /all/ header files,
> but only the ones that matter for the consumers of the library.
>
> I tried things like putting env.Moc5( "../include/*.h" ) in the
> SConscript file, but I just cannot make it work. Bottomline is that
> the generated moc_binaries never are linked together with the end
> target, I always get linker errors.
>
> Are there any suggestions? Kind Regards,
>
Please find a simple example project for Qt4 attached, and check whether
the structure is similar to your actual setup. I hope it gives you some
new ideas at least.
Best regards,
Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140804/5810c1a8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: explicit_test.tgz
Type: application/x-compressed-tar
Size: 13469 bytes
Desc: not available
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140804/5810c1a8/attachment-0001.bin>
More information about the Scons-users
mailing list